- Timestamp:
- May 5, 2018, 12:26:38 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/pacman/PacmanGhost.cc
r11948 r11949 126 126 } 127 127 128 129 while(lock){}; 130 lock = true; 128 131 //Check on which position ghost has arrived and set new target 129 132 else{ … … 333 336 this->resetGhost(); //Shouldn't happen... 334 337 } //End of Position table 335 } 336 338 339 } 340 look = false; 337 341 } 338 342 … … 418 422 419 423 void PacmanGhost::changewith(PacmanGhost* otherghost){ 424 425 while(lock){}; 426 lock = true; 427 420 428 otherghost->setPosition(this->getPosition()); 421 429 this->setPosition(0,-20,0); … … 426 434 this->dontmove = true; 427 435 otherghost->dontmove = false; 436 437 lock = false; 428 438 } 429 439
Note: See TracChangeset
for help on using the changeset viewer.