mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 22:33:17 +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);
|
if (isTranslated) sec->special = P_TranslateSectorSpecial(sec->special);
|
||||||
else if (namespc == NAME_Hexen)
|
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
|
sec->special = 0; // NULL all unknown specials
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -192,7 +192,7 @@ class USDFParser : public UDMFParserBase
|
||||||
|
|
||||||
case NAME_Special:
|
case NAME_Special:
|
||||||
reply->ActionSpecial = CheckInt(key);
|
reply->ActionSpecial = CheckInt(key);
|
||||||
if (reply->ActionSpecial < 0 || reply->ActionSpecial > 255)
|
if (reply->ActionSpecial < 0)
|
||||||
reply->ActionSpecial = 0;
|
reply->ActionSpecial = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue