From 458e39e36a8fc3ceeb2a9cad8148c15daaf4161f Mon Sep 17 00:00:00 2001 From: Molgrum Date: Thu, 11 Oct 2007 13:31:31 +0000 Subject: [PATCH] Removed the oldmovement code in DP_QC_BOTCLIENT. Previous commit was warning fixes in D3D. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2736 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_phys.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/engine/server/sv_phys.c b/engine/server/sv_phys.c index 6581b8b13..b1e437783 100644 --- a/engine/server/sv_phys.c +++ b/engine/server/sv_phys.c @@ -2015,7 +2015,6 @@ qboolean SV_Physics (void) static int old_bot_time; //I hate using floats for timers. client_t *oldhost; edict_t *oldplayer; - vec3_t oldmovement; host_frametime = (Sys_Milliseconds() - old_bot_time) / 1000.0f; if (1 || host_frametime >= 1 / 72.0f) { @@ -2030,10 +2029,6 @@ qboolean SV_Physics (void) host_client = &svs.clients[i-1]; sv_player = host_client->edict; - //oldmovement[0] = sv_player->xv->movement[0]; - //oldmovement[1] = sv_player->xv->movement[1]; - //oldmovement[2] = sv_player->xv->movement[2]; - SV_PreRunCmd(); ucmd.msec = host_frametime*1000; @@ -2049,11 +2044,7 @@ qboolean SV_Physics (void) SV_RunCmd(&ucmd, false); SV_PostRunCmd(); - - //sv_player->xv->movement[0] = oldmovement[0]; - //sv_player->xv->movement[1] = oldmovement[1]; - //sv_player->xv->movement[2] = oldmovement[2]; - + host_client = oldhost; sv_player = oldplayer; }