diff options
| author | zakk <zakk@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-04-11 02:31:49 +0000 |
|---|---|---|
| committer | zakk <zakk@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-04-11 02:31:49 +0000 |
| commit | d9ecdf9864ddd975a170987438510ba05c16aead (patch) | |
| tree | 8eb240ed3c0ba3edbab6e1646c0d77fc47b4a2f3 /Source/GameTick.cpp | |
| parent | beeb25ad5b27dbcdd778047fcd77e947c1cc3c5c (diff) | |
| download | blackshades-d9ecdf9864ddd975a170987438510ba05c16aead.tar.gz | |
Toby Haynes is god.
git-svn-id: svn://svn.icculus.org/blackshades/trunk@97 5198baeb-e213-0410-be47-fc2ff85ca46f
Diffstat (limited to 'Source/GameTick.cpp')
| -rw-r--r-- | Source/GameTick.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index 8e307df..4bce571 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -1730,8 +1730,12 @@ void Game::Tick(){ person[i].pathcheckdelay-=multiplier; - realcheck=(abs(person[i].playercoords.x-person[i].pathtarget.x)<1&&abs(person[i].playercoords.z-person[i].pathtarget.z)<1)||findDistancefast(person[i].playercoords,person[i].pathtarget)>findDistancefast(person[i].oldplayercoords,person[i].pathtarget); - + // Realcheck tells us + // a) we've got close to the end of our path or + // b) we're moving away from our target + // For whatever reason, part b) appears to be stuffed. Comment it out. + realcheck=(abs(person[i].playercoords.x-person[i].pathtarget.x)<1&&abs(person[i].playercoords.z-person[i].pathtarget.z)<1); + // ||findDistancefast(person[i].playercoords,person[i].pathtarget)>findDistancefast(person[i].oldplayercoords,person[i].pathtarget) if(person[i].targetanimation==idleanim&&person[i].killtargetvisible==0){ person[i].targetanimation=walkanim; |
