Ein Teil der Arbeit, um den Dedicated Server ohne

Client bauen zu können
This commit is contained in:
Yamagi Burmeister 2009-03-04 13:41:07 +00:00
parent 106e62f78a
commit ea789d8d97
1 changed files with 6 additions and 1 deletions

View File

@ -707,8 +707,10 @@ SV_RunGameFrame
*/ */
void SV_RunGameFrame (void) void SV_RunGameFrame (void)
{ {
#ifndef DEDICATED_ONLY
if (host_speeds->value) if (host_speeds->value)
time_before_game = Sys_Milliseconds (); time_before_game = Sys_Milliseconds ();
#endif
// we always need to bump framenum, even if we // we always need to bump framenum, even if we
// don't run the world, otherwise the delta // don't run the world, otherwise the delta
@ -731,9 +733,10 @@ void SV_RunGameFrame (void)
} }
} }
#ifndef DEDICATED_ONLY
if (host_speeds->value) if (host_speeds->value)
time_after_game = Sys_Milliseconds (); time_after_game = Sys_Milliseconds ();
#endif
} }
/* /*
@ -744,7 +747,9 @@ SV_Frame
*/ */
void SV_Frame (int msec) void SV_Frame (int msec)
{ {
#ifndef DEDICATED_ONLY
time_before_game = time_after_game = 0; time_before_game = time_after_game = 0;
#endif
// if server is not active, do nothing // if server is not active, do nothing
if (!svs.initialized) if (!svs.initialized)