mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-18 00:11:23 +00:00
Added support for older versions of DeHackEd patches
Patches from DeHackEd 2.3 and 2.4 are now loaded without warnings/errors
This commit is contained in:
parent
4d6532d303
commit
a1a0bdefff
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue