aboutsummaryrefslogtreecommitdiffstats
path: root/code/server/sv_ccmds.c
diff options
context:
space:
mode:
authorzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-17 01:36:38 +0000
committerzakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-17 01:36:38 +0000
commit10925c8309af0350541ab8fb0188b96bd67d35ad (patch)
tree5146b771c376785abfbe739ee35e01a873d2dd16 /code/server/sv_ccmds.c
parent468c8b373ff3fb1f5452d8198abe89018d99c414 (diff)
downloadioquake3-aero-10925c8309af0350541ab8fb0188b96bd67d35ad.tar.gz
ioquake3-aero-10925c8309af0350541ab8fb0188b96bd67d35ad.zip
Patch from Tim Angus, to fix a longstanding bug
in the server, wherein running the server for more than 24 hours would cause the game to exhibit weirdness as described here: http://forums.wireheadstudios.org/index.php?act=ST&f=11&t=2749 That page would also indicate that more work needs to be done if the map isn't going to change for more than 24 hours. git-svn-id: svn://svn.icculus.org/quake3/trunk@91 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/server/sv_ccmds.c')
-rw-r--r--code/server/sv_ccmds.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/code/server/sv_ccmds.c b/code/server/sv_ccmds.c
index 03bd2c9..2d17ae9 100644
--- a/code/server/sv_ccmds.c
+++ b/code/server/sv_ccmds.c
@@ -272,8 +272,10 @@ static void SV_MapRestart_f( void ) {
SV_RestartGameProgs();
// run a few frames to allow everything to settle
- for ( i = 0 ;i < 3 ; i++ ) {
- VM_Call( gvm, GAME_RUN_FRAME, svs.time );
+ for (i = 0; i < 3; i++)
+ {
+ VM_Call (gvm, GAME_RUN_FRAME, sv.time);
+ sv.time += 100;
svs.time += 100;
}
@@ -314,7 +316,8 @@ static void SV_MapRestart_f( void ) {
}
// run another frame to allow things to look at all the players
- VM_Call( gvm, GAME_RUN_FRAME, svs.time );
+ VM_Call (gvm, GAME_RUN_FRAME, sv.time);
+ sv.time += 100;
svs.time += 100;
}