[Orxonox-commit 7335] r11952 - code/branches/3DPacman_FS18/src/modules/pacman
dreherm at orxonox.net
dreherm at orxonox.net
Sat May 5 00:33:41 CEST 2018
Author: dreherm
Date: 2018-05-05 00:33:41 +0200 (Sat, 05 May 2018)
New Revision: 11952
Modified:
code/branches/3DPacman_FS18/src/modules/pacman/PacmanGhost.cc
Log:
Afraid Test 14
Modified: code/branches/3DPacman_FS18/src/modules/pacman/PacmanGhost.cc
===================================================================
--- code/branches/3DPacman_FS18/src/modules/pacman/PacmanGhost.cc 2018-05-04 22:30:41 UTC (rev 11951)
+++ code/branches/3DPacman_FS18/src/modules/pacman/PacmanGhost.cc 2018-05-04 22:33:41 UTC (rev 11952)
@@ -124,12 +124,11 @@
move(dt, actuelposition, velocity);
}
}
-
-
- while(lockmove){};
- lockmove = true;
//Check on which position ghost has arrived and set new target
else{
+ while(lockmove){};
+ lockmove = true;
+
if(findpos(actuelposition,possibleposition[0])){
setnewTarget(1,17,19);
}
@@ -335,9 +334,9 @@
else{
this->resetGhost(); //Shouldn't happen...
} //End of Position table
-
+ lockmove = false;
}
- lookmove = false;
+
}
void PacmanGhost::setnewTarget(int firstdec){
More information about the Orxonox-commit
mailing list