summaryrefslogtreecommitdiff
path: root/src/strife/p_enemy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/strife/p_enemy.c')
-rw-r--r--src/strife/p_enemy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/strife/p_enemy.c b/src/strife/p_enemy.c
index d7c5d72f..7c5c9117 100644
--- a/src/strife/p_enemy.c
+++ b/src/strife/p_enemy.c
@@ -2803,9 +2803,7 @@ void A_RaiseAlarm(mobj_t* actor)
//
void A_MissileTick(mobj_t* actor)
{
- int r = actor->reactiontime--;
-
- if(r - 1 <= 0)
+ if(--actor->reactiontime <= 0)
{
P_ExplodeMissile(actor);
actor->flags &= ~MF_MISSILE;
@@ -3339,6 +3337,7 @@ void A_ClearForceField(mobj_t* actor)
for(i = 0; i < sec->linecount; i++)
{
secline = sec->lines[i];
+ // BUG: will crash if 1S line has TWOSIDED flag!
if(!(secline->flags & ML_TWOSIDED))
continue;
if(secline->special != 148)