]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix champion check
authorFruitieX <rasse@rasse-laptop.(none)>
Sat, 23 Oct 2010 14:42:02 +0000 (17:42 +0300)
committerFruitieX <rasse@rasse-laptop.(none)>
Sat, 23 Oct 2010 14:42:02 +0000 (17:42 +0300)
qcsrc/server/arena.qc

index 0c9d769e4c9973ab471d3d65b0b28253b10fabf4..f9b4758c4b52f878e2cce630081ba72bcf4f0382 100644 (file)
@@ -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;