removed unused global host_time

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@769 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2012-10-12 07:50:45 +00:00
parent baf09f0807
commit 5f849f6ce1
3 changed files with 4 additions and 11 deletions

View File

@ -41,7 +41,6 @@ quakeparms_t *host_parms;
qboolean host_initialized; // true if into command execution qboolean host_initialized; // true if into command execution
double host_frametime; double host_frametime;
double host_time;
double realtime; // without any filtering or bounding double realtime; // without any filtering or bounding
double oldrealtime; // last frame run double oldrealtime; // last frame run
@ -275,8 +274,6 @@ void Host_InitLocal (void)
Cvar_RegisterVariable (&temp1); Cvar_RegisterVariable (&temp1);
Host_FindMaxClients (); Host_FindMaxClients ();
host_time = 1.0; // so a think at time 0 won't get called
} }
@ -727,8 +724,6 @@ void _Host_Frame (float time)
if (!sv.active) if (!sv.active)
CL_SendCmd (); CL_SendCmd ();
host_time += host_frametime;
// fetch results from server // fetch results from server
if (cls.state == ca_connected) if (cls.state == ca_connected)
{ {

View File

@ -264,7 +264,7 @@ void M_Main_Draw (void)
M_DrawPic ( (320-p->width)/2, 4, p); M_DrawPic ( (320-p->width)/2, 4, p);
M_DrawTransPic (72, 32, Draw_CachePic ("gfx/mainmenu.lmp") ); M_DrawTransPic (72, 32, Draw_CachePic ("gfx/mainmenu.lmp") );
f = (int)(realtime * 10)%6; //johnfitz -- was host_time f = (int)(realtime * 10)%6;
M_DrawTransPic (54, 32 + m_main_cursor * 20,Draw_CachePic( va("gfx/menudot%i.lmp", f+1 ) ) ); M_DrawTransPic (54, 32 + m_main_cursor * 20,Draw_CachePic( va("gfx/menudot%i.lmp", f+1 ) ) );
} }
@ -351,7 +351,7 @@ void M_SinglePlayer_Draw (void)
M_DrawPic ( (320-p->width)/2, 4, p); M_DrawPic ( (320-p->width)/2, 4, p);
M_DrawTransPic (72, 32, Draw_CachePic ("gfx/sp_menu.lmp") ); M_DrawTransPic (72, 32, Draw_CachePic ("gfx/sp_menu.lmp") );
f = (int)(realtime * 10)%6; //johnfitz -- was host_time f = (int)(realtime * 10)%6;
M_DrawTransPic (54, 32 + m_singleplayer_cursor * 20,Draw_CachePic( va("gfx/menudot%i.lmp", f+1 ) ) ); M_DrawTransPic (54, 32 + m_singleplayer_cursor * 20,Draw_CachePic( va("gfx/menudot%i.lmp", f+1 ) ) );
} }
@ -608,7 +608,7 @@ void M_MultiPlayer_Draw (void)
M_DrawPic ( (320-p->width)/2, 4, p); M_DrawPic ( (320-p->width)/2, 4, p);
M_DrawTransPic (72, 32, Draw_CachePic ("gfx/mp_menu.lmp") ); M_DrawTransPic (72, 32, Draw_CachePic ("gfx/mp_menu.lmp") );
f = (int)(realtime * 10)%6; //johnfitz -- was host_time f = (int)(realtime * 10)%6;
M_DrawTransPic (54, 32 + m_multiplayer_cursor * 20,Draw_CachePic( va("gfx/menudot%i.lmp", f+1 ) ) ); M_DrawTransPic (54, 32 + m_multiplayer_cursor * 20,Draw_CachePic( va("gfx/menudot%i.lmp", f+1 ) ) );
@ -900,7 +900,7 @@ void M_Net_Draw (void)
M_Print (f, 120, net_helpMessage[m_net_cursor*4+2]); M_Print (f, 120, net_helpMessage[m_net_cursor*4+2]);
M_Print (f, 128, net_helpMessage[m_net_cursor*4+3]); M_Print (f, 128, net_helpMessage[m_net_cursor*4+3]);
f = (int)(realtime * 10)%6; //johnfitz -- was host_time f = (int)(realtime * 10)%6;
M_DrawTransPic (54, 32 + m_net_cursor * 20,Draw_CachePic( va("gfx/menudot%i.lmp", f+1 ) ) ); M_DrawTransPic (54, 32 + m_net_cursor * 20,Draw_CachePic( va("gfx/menudot%i.lmp", f+1 ) ) );
} }

View File

@ -185,8 +185,6 @@ extern server_t sv; // local server
extern client_t *host_client; extern client_t *host_client;
extern double host_time;
extern edict_t *sv_player; extern edict_t *sv_player;
//=========================================================== //===========================================================