mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Ensure followmobj ghost exists before applying fuse
This commit is contained in:
parent
70edaa9afa
commit
984b996c7a
1 changed files with 1 additions and 3 deletions
|
|
@ -12231,12 +12231,10 @@ void P_PlayerThink(player_t *player)
|
||||||
{
|
{
|
||||||
mobj_t *ghost = P_SpawnGhostMobj(player->mo); // Spawns afterimages
|
mobj_t *ghost = P_SpawnGhostMobj(player->mo); // Spawns afterimages
|
||||||
ghost->fuse = 2; // Makes the images fade quickly
|
ghost->fuse = 2; // Makes the images fade quickly
|
||||||
if (ghost->tracer)
|
if (ghost->tracer && !P_MobjWasRemoved(ghost->tracer))
|
||||||
{
|
|
||||||
ghost->tracer->fuse = ghost->fuse;
|
ghost->tracer->fuse = ghost->fuse;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else if (dashmode)
|
else if (dashmode)
|
||||||
{
|
{
|
||||||
if (dashmode >= DASHMODE_THRESHOLD) // catch getting the flag!
|
if (dashmode >= DASHMODE_THRESHOLD) // catch getting the flag!
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue