Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11949


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

Afraid Test 11

Location:
code/branches/3DPacman_FS18
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/3DPacman_FS18/data/levels/3DPacman.oxw

    r11945 r11949  
    105105</PacmanPointSphere>
    106106
     107
     108<!-- AfraidPoints -->
    107109<PacmanPointAfraid position="215,10,195">
    108110    <attached>
     
    110112    </attached>
    111113</PacmanPointAfraid>
     114
    112115
    113116<!-- Map -->
  • 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.