- fixed: AActor::UnlinkFromWorld must also destroy all portal link nodes for the calling actor.

This commit is contained in:
Christoph Oelckers 2017-12-10 21:26:52 +01:00
parent 724c997695
commit 6b42036eb6

View file

@ -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