Skip to content

Commit

Permalink
Increase svs.time during the "run a few frames to settle"
Browse files Browse the repository at this point in the history
Stage of map_restart and map startup to keep the value in sync.
  • Loading branch information
ensiform committed Nov 15, 2024
1 parent 29fc640 commit 52d898a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/server/sv_ccmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ static void SV_MapRestart_f( void ) {
for ( i = 0; i < GAME_INIT_FRAMES; i++ ) {
VM_Call( gvm, GAME_RUN_FRAME, sv.time );
sv.time += FRAMETIME;
svs.time += FRAMETIME;
}

sv.state = SS_GAME;
Expand Down
1 change: 1 addition & 0 deletions src/server/sv_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,7 @@ void SV_SpawnServer( const char *mapname ) {
{
VM_Call( gvm, GAME_RUN_FRAME, sv.time );
sv.time += FRAMETIME;
svs.time += FRAMETIME;
////SV_BotFrame (sv.time);
}

Expand Down

0 comments on commit 52d898a

Please sign in to comment.