mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- fixed: Upon resurrection, a monster must check if the current setting of the link flags (NOBLOCKMAP and NOSECTOR) match the defaults.
This commit is contained in:
parent
6107f36ad2
commit
2bb80e3d0b
1 changed files with 6 additions and 0 deletions
|
@ -7766,7 +7766,13 @@ FState *AActor::GetRaiseState()
|
||||||
void AActor::Revive()
|
void AActor::Revive()
|
||||||
{
|
{
|
||||||
AActor *info = GetDefault();
|
AActor *info = GetDefault();
|
||||||
|
FLinkContext ctx;
|
||||||
|
|
||||||
|
bool flagchange = (flags & (MF_NOBLOCKMAP | MF_NOSECTOR)) != (info->flags & (MF_NOBLOCKMAP | MF_NOSECTOR));
|
||||||
|
|
||||||
|
if (flagchange) UnlinkFromWorld(&ctx);
|
||||||
flags = info->flags;
|
flags = info->flags;
|
||||||
|
if (flagchange) LinkToWorld(&ctx);
|
||||||
flags2 = info->flags2;
|
flags2 = info->flags2;
|
||||||
flags3 = info->flags3;
|
flags3 = info->flags3;
|
||||||
flags4 = info->flags4;
|
flags4 = info->flags4;
|
||||||
|
|
Loading…
Reference in a new issue