From d9ecdf9864ddd975a170987438510ba05c16aead Mon Sep 17 00:00:00 2001 From: zakk Date: Fri, 11 Apr 2003 02:31:49 +0000 Subject: Toby Haynes is god. git-svn-id: svn://svn.icculus.org/blackshades/trunk@97 5198baeb-e213-0410-be47-fc2ff85ca46f --- Source/GameTick.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Source/GameTick.cpp') 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; -- cgit v1.2.3