movement prediction fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2256 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-07-30 00:11:01 +00:00
parent cbf4983219
commit 335c980650
4 changed files with 7 additions and 9 deletions
+2 -3
View File
@@ -247,7 +247,6 @@ void predictplayer(playerent *d, bool move)
else if(d->yaw>=360) d->yaw -= 360;
d->pitch += d->deltapitch*k;
}
d->lastpredict = lastmillis;
}
void moveotherplayers()
@@ -298,10 +297,10 @@ void updateworld(int curtime, int lastmillis) // main game update loop
checkweaponswitch();
checkakimbo();
if(getclientnum()>=0) shoot(player1, worldpos); // only shoot when connected to server
gets2c(); // do this first, so we have most accurate information when our player moves
movebounceents();
moveotherplayers();
gets2c();
// Added by Rick: let bots think
if(m_botmode) BotManager.Think();