diff --git a/quakespasm/Quake/host.c b/quakespasm/Quake/host.c index 1ce6008a..293b877c 100644 --- a/quakespasm/Quake/host.c +++ b/quakespasm/Quake/host.c @@ -41,7 +41,6 @@ quakeparms_t *host_parms; qboolean host_initialized; // true if into command execution double host_frametime; -double host_time; double realtime; // without any filtering or bounding double oldrealtime; // last frame run @@ -275,8 +274,6 @@ void Host_InitLocal (void) Cvar_RegisterVariable (&temp1); 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) CL_SendCmd (); - host_time += host_frametime; - // fetch results from server if (cls.state == ca_connected) { diff --git a/quakespasm/Quake/menu.c b/quakespasm/Quake/menu.c index df5224e9..7567dd8d 100644 --- a/quakespasm/Quake/menu.c +++ b/quakespasm/Quake/menu.c @@ -264,7 +264,7 @@ void M_Main_Draw (void) M_DrawPic ( (320-p->width)/2, 4, p); 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 ) ) ); } @@ -351,7 +351,7 @@ void M_SinglePlayer_Draw (void) M_DrawPic ( (320-p->width)/2, 4, p); 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 ) ) ); } @@ -608,7 +608,7 @@ void M_MultiPlayer_Draw (void) M_DrawPic ( (320-p->width)/2, 4, p); 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 ) ) ); @@ -900,7 +900,7 @@ void M_Net_Draw (void) M_Print (f, 120, net_helpMessage[m_net_cursor*4+2]); 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 ) ) ); } diff --git a/quakespasm/Quake/server.h b/quakespasm/Quake/server.h index 38c8e1f6..311e6845 100644 --- a/quakespasm/Quake/server.h +++ b/quakespasm/Quake/server.h @@ -185,8 +185,6 @@ extern server_t sv; // local server extern client_t *host_client; -extern double host_time; - extern edict_t *sv_player; //===========================================================