- fixed: The counters for the whirlwind were initialized too late, the first time they are needed is in P_CheckMissileSpawn, which gets called from inside P_SpawnMissile. Also took the opportunity and moved them to properties that are accessible from DECORATE.

This commit is contained in:
Christoph Oelckers 2016-02-08 13:34:54 +01:00
commit c940c2ba81
6 changed files with 20 additions and 9 deletions

View file

@ -1353,7 +1353,7 @@ void P_ExplodeMissile (AActor *mo, line_t *line, AActor *target)
{
if (mo->flags3 & MF3_EXPLOCOUNT)
{
if (++mo->special2 < mo->special1)
if (++mo->threshold < mo->DefThreshold)
{
return;
}