mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-26 04:30:55 +00:00
Kill an overlay if the target is removed between P_AddOverlay and P_RunOverlays.
This commit is contained in:
parent
beecd72a22
commit
51ffa6d5ea
1 changed files with 7 additions and 0 deletions
|
@ -6499,6 +6499,13 @@ void P_RunOverlays(void)
|
|||
|
||||
if (!mo->target)
|
||||
continue;
|
||||
|
||||
if (P_MobjWasRemoved(mo->target))
|
||||
{
|
||||
P_RemoveMobj(mo);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!splitscreen /*&& rendermode != render_soft*/)
|
||||
{
|
||||
angle_t viewingangle;
|
||||
|
|
Loading…
Reference in a new issue