]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
battle royale: add missing IS_PLAYER check in PM_Physics hook which caused spectator...
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Sat, 10 Jun 2023 06:48:22 +0000 (08:48 +0200)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Sat, 10 Jun 2023 06:48:22 +0000 (08:48 +0200)
qcsrc/common/gamemodes/gamemode/br/sv_br.qc

index 39341bef7be29148edb1c54f11783c188098790d..de2f82e4c7edd2991070b3c4c87ce9fa7ec3e679 100644 (file)
@@ -545,6 +545,9 @@ MUTATOR_HOOKFUNCTION(br, PM_Physics)
     float maxspeed_mod = M_ARGV(1, float);
     float dt = M_ARGV(2, float); // tick rate
 
+    if(!IS_PLAYER(player))
+        return false;
+
     if(STAT(DROP, player) == DROP_TRANSPORT)
         return true;