Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Afraid Test 12

File:
1 edited

Legend:

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

    r11949 r11950  
    126126        }
    127127
    128        
    129         while(lock){};
    130         lock = true;
     128
     129        while(lockmove){};
     130        lockmove = true;
    131131        //Check on which position ghost has arrived and set new target
    132132         else{
     
    338338
    339339            }
    340             look = false;
     340            lookmove = false;
    341341    }
    342342
     
    423423    void PacmanGhost::changewith(PacmanGhost* otherghost){
    424424
    425         while(lock){};
    426         lock = true;
     425        while(lockmove){};
     426        lockmove = true;
    427427
    428428        otherghost->setPosition(this->getPosition());
     
    435435        otherghost->dontmove = false;
    436436
    437         lock = false;
     437        lockmove = false;
    438438    }
    439439
Note: See TracChangeset for help on using the changeset viewer.