From a1a0bdefffef6e735effab3864aa2d8198a6d4f4 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 23 Jul 2016 11:09:52 +0300 Subject: [PATCH] Added support for older versions of DeHackEd patches Patches from DeHackEd 2.3 and 2.4 are now loaded without warnings/errors --- src/d_dehacked.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d_dehacked.cpp b/src/d_dehacked.cpp index 387e05be5..29a087fac 100644 --- a/src/d_dehacked.cpp +++ b/src/d_dehacked.cpp @@ -2507,7 +2507,7 @@ static bool DoDehPatch() cont = 0; if (0 == strncmp (PatchFile, "Patch File for DeHackEd v", 25)) { - if (PatchFile[25] < '3') + if (PatchFile[25] < '3' && PatchFile[25] != '2' && PatchFile[27] != '3') { Printf (PRINT_BOLD, "\"%s\" is an old and unsupported DeHackEd patch\n", PatchName); delete[] PatchName; @@ -2544,7 +2544,7 @@ static bool DoDehPatch() {} } - if (pversion != 6) + if (pversion != 5 && pversion != 6) { Printf ("DeHackEd patch version is %d.\nUnexpected results may occur.\n", pversion); }