]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix players allowed to move if game ended during countdown to game start. It fixes...
authorterencehill <piuntn@gmail.com>
Thu, 17 Nov 2016 20:56:53 +0000 (21:56 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 17 Nov 2016 20:56:53 +0000 (21:56 +0100)
qcsrc/ecs/systems/sv_physics.qc

index 904ebba3fe5ccbea2b1f1aefaa55f502dd67450b..4973a182973a0f002b77691a8f93ba8133da09da 100644 (file)
@@ -37,7 +37,7 @@ void sys_phys_ai(entity this)
 void sys_phys_pregame_hold(entity this)
 {
        if (!IS_PLAYER(this)) { return; }
-       const bool allowed_to_move = (time >= game_starttime);
+       const bool allowed_to_move = (time >= game_starttime && !gameover);
        if (!allowed_to_move) {
                this.velocity = '0 0 0';
                set_movetype(this, MOVETYPE_NONE);