Skip to content

Commit

Permalink
Added support for older versions of DeHackEd patches
Browse files Browse the repository at this point in the history
Patches from DeHackEd 2.3 and 2.4 are now loaded without warnings/errors
  • Loading branch information
alexey-lysiuk committed Jul 23, 2016
1 parent 4d6532d commit a1a0bde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/d_dehacked.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit a1a0bde

Please sign in to comment.