Give precip. its own thinker list

Signed-off-by: Nev3r <apophycens@gmail.com>
This commit is contained in:
Nev3r 2019-04-21 14:58:13 +02:00
parent 8cb0f55a90
commit fc9e141460
2 changed files with 2 additions and 1 deletions

View File

@ -66,6 +66,7 @@ typedef enum{
THINK_MAIN,
THINK_DYNSLOPE,
THINK_MOBJ,
THINK_PRECIP,
NUM_THINKERLISTS
} thinklistnum_t; /**< Thinker lists. */
extern thinker_t thlist[];

View File

@ -9122,7 +9122,7 @@ static precipmobj_t *P_SpawnPrecipMobj(fixed_t x, fixed_t y, fixed_t z, mobjtype
mobj->momz = mobjinfo[type].speed;
mobj->thinker.function.acp1 = (actionf_p1)P_NullPrecipThinker;
P_AddThinker(THINK_MOBJ, &mobj->thinker);
P_AddThinker(THINK_PRECIP, &mobj->thinker);
CalculatePrecipFloor(mobj);