mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-22 12:01:33 +00:00
- fixed: USDF did not allow specials > 255.
This commit is contained in:
parent
d80dc098bd
commit
ee6e427e78
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue