From 88bebaec3999335d8d79601c9a0191ebcb450858 Mon Sep 17 00:00:00 2001 From: drfrag Date: Tue, 20 Mar 2018 18:36:00 +0100 Subject: [PATCH] - Fixed not getting the 'old and unsupported DeHackEd patch' error message for some old patch versions. --- src/d_dehacked.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d_dehacked.cpp b/src/d_dehacked.cpp index 76bcc1931..75e873648 100644 --- a/src/d_dehacked.cpp +++ b/src/d_dehacked.cpp @@ -2536,7 +2536,7 @@ static bool DoDehPatch() cont = 0; if (0 == strncmp (PatchFile, "Patch File for DeHackEd v", 25)) { - if (PatchFile[25] < '3' && PatchFile[25] != '2' && PatchFile[27] != '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;