From: FruitieX Date: Sat, 23 Oct 2010 14:42:02 +0000 (+0300) Subject: fix champion check X-Git-Tag: xonotic-v0.1.0preview~245^2~8^2~11 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c8ad31b558d215eb78f594184de79c6b646ae3f4;p=xonotic%2Fxonotic-data.pk3dir.git fix champion check --- diff --git a/qcsrc/server/arena.qc b/qcsrc/server/arena.qc index 0c9d769e4..f9b4758c4 100644 --- a/qcsrc/server/arena.qc +++ b/qcsrc/server/arena.qc @@ -199,7 +199,9 @@ void Arena_Warmup() if((!g_arena && !g_ca) || (g_arena && !arena_roundbased) || (time < game_starttime)) return; - f = floor(warmup - time + 1); + f = ceil(warmup - time); + if(f <= 0) + champion = world; // this is done because a if(champion) will not execute if champion = world allowed_to_spawn = 0;