mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-09 09:33:10 +00:00
Ring Shooter: Fix sometimes invisible after use
This commit is contained in:
parent
c4a087790a
commit
1c4137648b
1 changed files with 13 additions and 7 deletions
|
|
@ -435,9 +435,15 @@ void Obj_PlayerUsedRingShooter(mobj_t *base, player_t *player)
|
|||
// Now other players can run into it!
|
||||
base->flags |= MF_SPECIAL;
|
||||
|
||||
// Reset the fuse so everyone can conga line :B
|
||||
if (base->fuse < RS_FUSE_TIME)
|
||||
{
|
||||
// Reset the fuse so everyone can conga line :B
|
||||
if (base->fuse < RS_FUSE_BLINK)
|
||||
{
|
||||
base->renderflags &= ~RF_DONTDRAW;
|
||||
UpdateRingShooterPartsVisibility(base);
|
||||
}
|
||||
|
||||
base->fuse = RS_FUSE_TIME;
|
||||
}
|
||||
}
|
||||
|
|
@ -684,14 +690,14 @@ void Obj_RingShooterInput(player_t *player)
|
|||
base->z // TODO: reverse gravity
|
||||
);
|
||||
|
||||
if (base->fuse < RS_FUSE_BLINK)
|
||||
{
|
||||
base->renderflags &= ~RF_DONTDRAW;
|
||||
UpdateRingShooterPartsVisibility(base);
|
||||
}
|
||||
|
||||
if (base->fuse < RS_FUSE_TIME)
|
||||
{
|
||||
if (base->fuse < RS_FUSE_BLINK)
|
||||
{
|
||||
base->renderflags &= ~RF_DONTDRAW;
|
||||
UpdateRingShooterPartsVisibility(base);
|
||||
}
|
||||
|
||||
base->fuse = RS_FUSE_TIME;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue