- fixed: USDF did not allow specials > 255.

This commit is contained in:
Christoph Oelckers 2017-02-26 16:54:09 +01:00
parent d80dc098bd
commit ee6e427e78
2 changed files with 2 additions and 2 deletions

View file

@ -1393,7 +1393,7 @@ public:
if (isTranslated) sec->special = P_TranslateSectorSpecial(sec->special);
else if (namespc == NAME_Hexen)
{
if (sec->special < 0 || sec->special > 255 || !HexenSectorSpecialOk[sec->special])
if (sec->special < 0 || sec->special > 140 || !HexenSectorSpecialOk[sec->special])
sec->special = 0; // NULL all unknown specials
}
continue;

View file

@ -192,7 +192,7 @@ class USDFParser : public UDMFParserBase
case NAME_Special:
reply->ActionSpecial = CheckInt(key);
if (reply->ActionSpecial < 0 || reply->ActionSpecial > 255)
if (reply->ActionSpecial < 0)
reply->ActionSpecial = 0;
break;