- translate UMAPINFO specials at execution time, not load time.

At load time the context for translation does not exist.
This commit is contained in:
Christoph Oelckers 2019-01-27 16:09:05 +01:00
commit c8cd11422a
2 changed files with 17 additions and 9 deletions

View file

@ -274,14 +274,10 @@ static int ParseStandardProperty(FScanner &scanner, UMapEntry *mape)
#pragma message("Fixme: This needs to be evaluated at run time")
if (tag != 0 || special == 11 || special == 51 || special == 52 || special == 124)
{
// This cannot be evaluated here because this needs to be done in the context of the level being used.
FSpecialAction & bossact = mape->BossActions[mape->BossActions.Reserve(1)];
line_t line;
maplinedef_t mld;
mld.special = special;
mld.tag = tag;
//level.TranslateLineDef(&line, &mld);
bossact = { type, (uint8_t)line.special, {line.args[0], line.args[1],line.args[2],line.args[3],line.args[4]} };
}
bossact = { type, special | 0x40000000, tag };
};
}
}
else