- changed ACS parameter truncation for Hexen so that it's only done for ACS_Old format.

SVN r3497 (trunk)
This commit is contained in:
Christoph Oelckers 2012-03-31 20:53:01 +00:00
parent d64ca20b31
commit 10c783dde2

View file

@ -4007,8 +4007,8 @@ int DLevelScript::RunScript ()
FRemapTable *translation = 0;
int resultValue = 1;
// Hexen truncates all special arguments to bytes.
const int specialargmask = (level.flags2 & LEVEL2_HEXENHACK) ? 255 : ~0;
// Hexen truncates all special arguments to bytes (only when using an old MAPINFO and old ACS format
const int specialargmask = ((level.flags2 & LEVEL2_HEXENHACK) && activeBehavior->GetFormat() == ACS_Old) ? 255 : ~0;
switch (state)
{