Changeset 12007 for code/branches/3DPacman_FS18/src/modules/pacman
- Timestamp:
- May 24, 2018, 5:02:32 PM (6 years ago)
- Location:
- code/branches/3DPacman_FS18/src/modules/pacman
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/pacman/PacmanPointAfraid.cc
r11992 r12007 76 76 { 77 77 resetposition = this->getPosition(); 78 if((abs(resetposition.x - playerpos.x)< 5) && (abs(resetposition.y - playerpos.y)<5) && (abs(resetposition.z - playerpos.z)<5)){78 if((abs(resetposition.x - playerpos.x)<10) && (abs(resetposition.y - playerpos.y)<10) && (abs(resetposition.z - playerpos.z)<10)){ 79 79 this->setPosition(Vector3(resetposition.x, -50, resetposition.z)); 80 80 return true; -
code/branches/3DPacman_FS18/src/modules/pacman/PacmanPointSphere.cc
r12003 r12007 76 76 { 77 77 resetposition = this->getPosition(); 78 if((abs(this->resetposition.x - playerpos.x)< 5) && (abs(this->resetposition.y - playerpos.y)<5) && (abs(this->resetposition.z - playerpos.z)<5)){78 if((abs(this->resetposition.x - playerpos.x)<10) && (abs(this->resetposition.y - playerpos.y)<10) && (abs(this->resetposition.z - playerpos.z)<10)){ 79 79 this->setPosition(Vector3(resetposition.x, -50, resetposition.z)); 80 80 return true;
Note: See TracChangeset
for help on using the changeset viewer.