mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-31 05:10:33 +00:00
Ein Teil der Arbeit, um den Dedicated Server ohne
Client bauen zu können
This commit is contained in:
parent
106e62f78a
commit
ea789d8d97
1 changed files with 6 additions and 1 deletions
|
@ -707,8 +707,10 @@ SV_RunGameFrame
|
|||
*/
|
||||
void SV_RunGameFrame (void)
|
||||
{
|
||||
#ifndef DEDICATED_ONLY
|
||||
if (host_speeds->value)
|
||||
time_before_game = Sys_Milliseconds ();
|
||||
#endif
|
||||
|
||||
// we always need to bump framenum, even if we
|
||||
// don't run the world, otherwise the delta
|
||||
|
@ -731,9 +733,10 @@ void SV_RunGameFrame (void)
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef DEDICATED_ONLY
|
||||
if (host_speeds->value)
|
||||
time_after_game = Sys_Milliseconds ();
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -744,7 +747,9 @@ SV_Frame
|
|||
*/
|
||||
void SV_Frame (int msec)
|
||||
{
|
||||
#ifndef DEDICATED_ONLY
|
||||
time_before_game = time_after_game = 0;
|
||||
#endif
|
||||
|
||||
// if server is not active, do nothing
|
||||
if (!svs.initialized)
|
||||
|
|
Loading…
Reference in a new issue