From: terencehill Date: Thu, 17 Nov 2016 20:56:53 +0000 (+0100) Subject: Fix players allowed to move if game ended during countdown to game start. It fixes... X-Git-Tag: xonotic-v0.8.2~433 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c2914c8898b32a445ccd06318912f993f1a9a7af;p=xonotic%2Fxonotic-data.pk3dir.git Fix players allowed to move if game ended during countdown to game start. It fixes #1838 --- diff --git a/qcsrc/ecs/systems/sv_physics.qc b/qcsrc/ecs/systems/sv_physics.qc index 904ebba3f..4973a1829 100644 --- a/qcsrc/ecs/systems/sv_physics.qc +++ b/qcsrc/ecs/systems/sv_physics.qc @@ -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);