Fix Capsule Entrance exec firing repeatedly

This commit is contained in:
mazmazz 2018-08-14 12:48:00 -04:00
parent 3f312ce114
commit efdf684770
1 changed files with 2 additions and 2 deletions

View File

@ -6009,7 +6009,7 @@ static void P_DoNiGHTSCapsule(player_t *player)
}
}
if (player->capsule->extravalue2 <= 0)
if (player->capsule->extravalue2 <= 0 && player->capsule->health > 0)
P_RunNightsCapsuleTouchExecutors(player->mo, true, player->spheres >= player->capsule->health); // run capsule entrance executors
// Time to blow it up!
@ -6118,7 +6118,7 @@ static void P_DoNiGHTSCapsule(player_t *player)
}
}
else
player->capsule->extravalue1 = player->capsule->extravalue2 = -1;
player->capsule->extravalue1 = -1;
}
//