]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix a spawnflag check
authorMario <mario@smbclan.net>
Tue, 12 Jun 2018 05:35:39 +0000 (15:35 +1000)
committerMario <mario@smbclan.net>
Tue, 12 Jun 2018 05:35:39 +0000 (15:35 +1000)
qcsrc/common/turrets/turret/walker.qc

index 499e64d0cce4a32c553300e7935f82af83c473ee..93b9483defa5fc06cc1f91ff0dfba51d840934c8 100644 (file)
@@ -354,7 +354,7 @@ METHOD(WalkerTurret, tr_think, void(WalkerTurret thistur, entity it))
 {
     fixedmakevectors(it.angles);
 
-    if (it.spawnflags & TSF_NO_PATHBREAK && it.pathcurrent)
+    if ((it.spawnflags & TSF_NO_PATHBREAK) && it.pathcurrent)
         walker_move_path(it);
     else if (it.enemy == NULL)
     {