From ee6e427e78dabdcfb6a2ed9de1febf352e7f8e0d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 26 Feb 2017 16:54:09 +0100 Subject: [PATCH] - fixed: USDF did not allow specials > 255. --- src/p_udmf.cpp | 2 +- src/p_usdf.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;