[Orxonox-commit 7333] r11950 - code/branches/3DPacman_FS18/src/modules/pacman
dreherm at orxonox.net
dreherm at orxonox.net
Sat May 5 00:29:25 CEST 2018
Author: dreherm
Date: 2018-05-05 00:29:25 +0200 (Sat, 05 May 2018)
New Revision: 11950
Modified:
code/branches/3DPacman_FS18/src/modules/pacman/PacmanGhost.cc
Log:
Afraid Test 12
Modified: code/branches/3DPacman_FS18/src/modules/pacman/PacmanGhost.cc
===================================================================
--- code/branches/3DPacman_FS18/src/modules/pacman/PacmanGhost.cc 2018-05-04 22:26:38 UTC (rev 11949)
+++ code/branches/3DPacman_FS18/src/modules/pacman/PacmanGhost.cc 2018-05-04 22:29:25 UTC (rev 11950)
@@ -125,9 +125,9 @@
}
}
-
- while(lock){};
- lock = true;
+
+ while(lockmove){};
+ lockmove = true;
//Check on which position ghost has arrived and set new target
else{
if(findpos(actuelposition,possibleposition[0])){
@@ -337,7 +337,7 @@
} //End of Position table
}
- look = false;
+ lookmove = false;
}
void PacmanGhost::setnewTarget(int firstdec){
@@ -422,8 +422,8 @@
void PacmanGhost::changewith(PacmanGhost* otherghost){
- while(lock){};
- lock = true;
+ while(lockmove){};
+ lockmove = true;
otherghost->setPosition(this->getPosition());
this->setPosition(0,-20,0);
@@ -434,7 +434,7 @@
this->dontmove = true;
otherghost->dontmove = false;
- lock = false;
+ lockmove = false;
}
More information about the Orxonox-commit
mailing list