- Fixed not getting the 'old and unsupported DeHackEd patch' error message for some old patch versions.

This commit is contained in:
drfrag 2018-03-20 18:36:00 +01:00 committed by alexey.lysiuk
parent d58169f1b0
commit 88bebaec39

View file

@ -2536,7 +2536,7 @@ static bool DoDehPatch()
cont = 0; cont = 0;
if (0 == strncmp (PatchFile, "Patch File for DeHackEd v", 25)) 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); Printf (PRINT_BOLD, "\"%s\" is an old and unsupported DeHackEd patch\n", PatchName);
delete[] PatchName; delete[] PatchName;