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.
This commit is contained in:
parent
40592957b4
commit
4bee7b4134
6 changed files with 21 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue