diff options
author | James Haley | 2010-09-10 18:17:34 +0000 |
---|---|---|
committer | James Haley | 2010-09-10 18:17:34 +0000 |
commit | 21f21427c16074276aef29d1d3b1238763d06b77 (patch) | |
tree | 93bcb7a7d2fc15e24b2ee6ec0c8db33e7dbb5c55 /src/strife/p_enemy.c | |
parent | 939706506562843669ea2bb5b8205e32d56f9972 (diff) | |
download | chocolate-doom-21f21427c16074276aef29d1d3b1238763d06b77.tar.gz chocolate-doom-21f21427c16074276aef29d1d3b1238763d06b77.tar.bz2 chocolate-doom-21f21427c16074276aef29d1d3b1238763d06b77.zip |
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
Diffstat (limited to 'src/strife/p_enemy.c')
-rw-r--r-- | src/strife/p_enemy.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |