Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 8, 2018, 1:20:49 PM (6 years ago)
Author:
dreherm
Message:

Added Ghostchange

File:
1 edited

Legend:

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

    r11939 r11954  
    7474    bool PacmanPointAfraid::taken(Vector3 playerpos)
    7575    {
    76       if((abs(this->resetposition.x - playerpos.x)<0.1) && (abs(this->resetposition.z - playerpos.z)<0.1)){
     76      Vector3 resetposition = this->getPosition(); 
     77     
     78      if((abs(resetposition.x - playerpos.x)<1) && (abs(resetposition.z - playerpos.z)<1)){
    7779        this->setPosition(Vector3(resetposition.x, -50, resetposition.z));
    7880        return true;
Note: See TracChangeset for help on using the changeset viewer.