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.
Diff: People/People.cpp
- Revision:
- 40:71f947254fda
- Parent:
- 36:27aa597db3d2
- Child:
- 82:3211b31e9421
diff -r fc5586b930e3 -r 71f947254fda People/People.cpp
--- a/People/People.cpp Sat May 16 21:08:54 2020 +0000
+++ b/People/People.cpp Sun May 17 21:12:34 2020 +0000
@@ -40,7 +40,7 @@
}
void People::collision_with_alien(){
-if(alien_collision_flag){
+if(alien_collision_flag && !alien_track){
//people moves on its own but at half speed of spaceship
if (people_move_counter_%2 == 0) {
if (random_move_counter_ == 0){