Give precip. its own thinker list
Signed-off-by: Nev3r <apophycens@gmail.com>
This commit is contained in:
parent
8cb0f55a90
commit
fc9e141460
|
@ -66,6 +66,7 @@ typedef enum{
|
||||||
THINK_MAIN,
|
THINK_MAIN,
|
||||||
THINK_DYNSLOPE,
|
THINK_DYNSLOPE,
|
||||||
THINK_MOBJ,
|
THINK_MOBJ,
|
||||||
|
THINK_PRECIP,
|
||||||
NUM_THINKERLISTS
|
NUM_THINKERLISTS
|
||||||
} thinklistnum_t; /**< Thinker lists. */
|
} thinklistnum_t; /**< Thinker lists. */
|
||||||
extern thinker_t thlist[];
|
extern thinker_t thlist[];
|
||||||
|
|
|
@ -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->momz = mobjinfo[type].speed;
|
||||||
|
|
||||||
mobj->thinker.function.acp1 = (actionf_p1)P_NullPrecipThinker;
|
mobj->thinker.function.acp1 = (actionf_p1)P_NullPrecipThinker;
|
||||||
P_AddThinker(THINK_MOBJ, &mobj->thinker);
|
P_AddThinker(THINK_PRECIP, &mobj->thinker);
|
||||||
|
|
||||||
CalculatePrecipFloor(mobj);
|
CalculatePrecipFloor(mobj);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue