Changeset 11950 for code/branches/3DPacman_FS18/src
- Timestamp:
- May 5, 2018, 12:29:25 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/pacman/PacmanGhost.cc
r11949 r11950 126 126 } 127 127 128 129 while(lock ){};130 lock = true;128 129 while(lockmove){}; 130 lockmove = true; 131 131 //Check on which position ghost has arrived and set new target 132 132 else{ … … 338 338 339 339 } 340 look = false;340 lookmove = false; 341 341 } 342 342 … … 423 423 void PacmanGhost::changewith(PacmanGhost* otherghost){ 424 424 425 while(lock ){};426 lock = true;425 while(lockmove){}; 426 lockmove = true; 427 427 428 428 otherghost->setPosition(this->getPosition()); … … 435 435 otherghost->dontmove = false; 436 436 437 lock = false;437 lockmove = false; 438 438 } 439 439
Note: See TracChangeset
for help on using the changeset viewer.