From 8a1ea1725aba05b80ae6cb7e7e5c3602d88fa287 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Wed, 7 Aug 2019 07:44:37 +0200 Subject: [PATCH] Revert heat_think() part of aed38232d3ec17babefd7d261cf220336a81fc11. @DanielGibson missinterpreted the code, the negation must be applied to target->svflags only. Otherwise the codition is always true and the homing rocket never aquires a target. --- src/g_weapon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_weapon.c b/src/g_weapon.c index d62a032..555f107 100644 --- a/src/g_weapon.c +++ b/src/g_weapon.c @@ -1359,7 +1359,7 @@ heat_think(edict_t *self) continue; } - if (!(target->svflags & SVF_MONSTER)) + if ((!target->svflags) & SVF_MONSTER) { continue; }