]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix error spam that occurs when standing in the way of rotating doors
authorMario <mario.mario@y7mail.com>
Sun, 4 Dec 2022 11:16:20 +0000 (21:16 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 4 Dec 2022 11:16:20 +0000 (21:16 +1000)
qcsrc/common/mapobjects/func/door.qc

index 2dcd2333d214f3137a0de938a1fe9582524b9906..1316c3283003e6ce5b5a573e47960eebdb9c2020 100644 (file)
@@ -82,7 +82,7 @@ void door_blocked(entity this, entity blocker)
                }
 #endif
        }
-       if (!reverse)
+       if (!reverse && this.classname == "door")
                SUB_CalcMovePause(this);
 }