mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Give precip. its own thinker list
Signed-off-by: Nev3r <apophycens@gmail.com>
This commit is contained in:
parent
04e212873f
commit
721c866895
2 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue