From c2914c8898b32a445ccd06318912f993f1a9a7af Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 17 Nov 2016 21:56:53 +0100 Subject: [PATCH] Fix players allowed to move if game ended during countdown to game start. It fixes #1838 --- qcsrc/ecs/systems/sv_physics.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2