]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Physics now still run if game hasn't started yet
authorz411 <z411@omaera.org>
Mon, 7 Sep 2020 22:25:53 +0000 (19:25 -0300)
committerz411 <z411@omaera.org>
Mon, 7 Sep 2020 22:25:53 +0000 (19:25 -0300)
qcsrc/ecs/systems/sv_physics.qc

index 175c57c4844de5206959de1031ad4adff23577fa..1d5553d1d1084b50be15cec4287a17905ac6d28a 100644 (file)
@@ -40,7 +40,9 @@ 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 && !game_stopped);
+       // z411
+       //const bool allowed_to_move = (time >= game_starttime && !game_stopped);
+       const bool allowed_to_move = (!game_stopped);
        if (!allowed_to_move) {
                this.velocity = '0 0 0';
                set_movetype(this, MOVETYPE_NONE);