mirror of
https://github.com/ioquake/ioq3.git
synced 2025-02-23 03:51:24 +00:00
Fix g_warmup < 2 causing client prediction issues (bug #5740). (Reused code for tournament gametype.)
This commit is contained in:
parent
e3fc1826b1
commit
c65142179f
1 changed files with 6 additions and 1 deletions
|
@ -1522,7 +1522,12 @@ void CheckTournament( void ) {
|
||||||
// if all players have arrived, start the countdown
|
// if all players have arrived, start the countdown
|
||||||
if ( level.warmupTime < 0 ) {
|
if ( level.warmupTime < 0 ) {
|
||||||
// fudge by -1 to account for extra delays
|
// fudge by -1 to account for extra delays
|
||||||
level.warmupTime = level.time + ( g_warmup.integer - 1 ) * 1000;
|
if ( g_warmup.integer > 1 ) {
|
||||||
|
level.warmupTime = level.time + ( g_warmup.integer - 1 ) * 1000;
|
||||||
|
} else {
|
||||||
|
level.warmupTime = 0;
|
||||||
|
}
|
||||||
|
|
||||||
trap_SetConfigstring( CS_WARMUP, va("%i", level.warmupTime) );
|
trap_SetConfigstring( CS_WARMUP, va("%i", level.warmupTime) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue