From 21f21427c16074276aef29d1d3b1238763d06b77 Mon Sep 17 00:00:00 2001 From: James Haley Date: Fri, 10 Sep 2010 18:17:34 +0000 Subject: Minor reformatting in p_map.c, and found some code hex-rays was ignoring in P_CheckMissileRange regarding maximum considered distance for Crusaders. Subversion-branch: /branches/strife-branch Subversion-revision: 2058 --- src/strife/p_enemy.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/strife/p_enemy.c') diff --git a/src/strife/p_enemy.c b/src/strife/p_enemy.c index a5d3da3c..f6c44c67 100644 --- a/src/strife/p_enemy.c +++ b/src/strife/p_enemy.c @@ -346,6 +346,10 @@ boolean P_CheckMissileRange(mobj_t* actor) if (dist > 150) dist = 150; + // haleyjd 09/10/10: Hex-Rays was leaving this out completely: + if (actor->type == MT_CRUSADER && dist > 120) + dist = 120; + if (P_Random () < dist) return false; -- cgit v1.2.3