Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 5, 2018, 12:26:38 AM (7 years ago)
Author:
dreherm
Message:

Afraid Test 11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/3DPacman_FS18/src/modules/pacman/PacmanGhost.cc

    r11948 r11949  
    126126        }
    127127
     128       
     129        while(lock){};
     130        lock = true;
    128131        //Check on which position ghost has arrived and set new target
    129132         else{
     
    333336                this->resetGhost(); //Shouldn't happen...
    334337            } //End of Position table
    335             }
    336 
     338
     339            }
     340            look = false;
    337341    }
    338342
     
    418422
    419423    void PacmanGhost::changewith(PacmanGhost* otherghost){
     424
     425        while(lock){};
     426        lock = true;
     427
    420428        otherghost->setPosition(this->getPosition());
    421429        this->setPosition(0,-20,0);
     
    426434        this->dontmove = true;
    427435        otherghost->dontmove = false;
     436
     437        lock = false;
    428438    }
    429439
Note: See TracChangeset for help on using the changeset viewer.