ELEC2645 (2018/19) / Mbed 2 deprecated EL17MCD

Dependencies:   mbed

Revision:
8:d4e419dad90f
Parent:
7:a3ccabdebe2e
Child:
10:d4fb12e9e7cd
--- a/TankL/TankL.cpp	Tue Apr 09 17:09:29 2019 +0000
+++ b/TankL/TankL.cpp	Wed Apr 10 11:33:10 2019 +0000
@@ -3,7 +3,6 @@
 lcd and dictates it's movement
 1.4.19
 */
-
 #include "TankL.h"
 /*
 TankL::TankL()
@@ -65,11 +64,10 @@
 void TankL::generate_hitbox()
 {
     int i = 0;
-    for (int i0 = 0; i0 < 4; i0++) {
-    
+    for (int i0 = 0; i0 < 4; i0++) {    
         for (int i1 = 1; i1 < 11; i1++) {
-        _hitbox[i] = (i0 + _position_y) * 84 + _position_x + i1;
-        i++;
+            _hitbox[i] = (i0 + _position_y) * 84 + _position_x + i1;
+            i++;
         }
     }
 }
\ No newline at end of file