mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +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()
|
||||
{
|
||||
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;
|
||||
if (flagchange) LinkToWorld(&ctx);
|
||||
flags2 = info->flags2;
|
||||
flags3 = info->flags3;
|
||||
flags4 = info->flags4;
|
||||
|
|
Loading…
Reference in a new issue