Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: TankL/TankL.cpp
- 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