mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
- fixed: AActor::UnlinkFromWorld must also destroy all portal link nodes for the calling actor.
This commit is contained in:
parent
724c997695
commit
6b42036eb6
1 changed files with 10 additions and 9 deletions
|
@ -343,6 +343,16 @@ void AActor::UnlinkFromWorld (FLinkContext *ctx)
|
|||
}
|
||||
BlockNode = NULL;
|
||||
}
|
||||
ClearRenderSectorList();
|
||||
ClearRenderLineList();
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION(AActor, UnlinkFromWorld)
|
||||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
PARAM_POINTER_DEF(ctx, FLinkContext);
|
||||
self->UnlinkFromWorld(ctx); // fixme
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -429,15 +439,6 @@ bool AActor::FixMapthingPos()
|
|||
return success;
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION(AActor, UnlinkFromWorld)
|
||||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
PARAM_POINTER_DEF(ctx, FLinkContext);
|
||||
self->UnlinkFromWorld(ctx); // fixme
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// P_SetThingPosition
|
||||
|
|
Loading…
Reference in a new issue