diff --git a/src/p_udmf.cpp b/src/p_udmf.cpp index fc71160ae9..0ba75fc4c7 100644 --- a/src/p_udmf.cpp +++ b/src/p_udmf.cpp @@ -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; diff --git a/src/p_usdf.cpp b/src/p_usdf.cpp index 5a5f3c8269..8c8a0c6e34 100644 --- a/src/p_usdf.cpp +++ b/src/p_usdf.cpp @@ -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;