- Fixed: 2048 should be a valid height for a Doom patch.

SVN r3310 (trunk)
This commit is contained in:
Braden Obrzut 2011-11-03 21:08:39 +00:00
parent 4816b3182b
commit e68d956208
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ static bool CheckIfPatch(FileReader & file)
int height = LittleShort(foo->height);
int width = LittleShort(foo->width);
if (height > 0 && height < 2048 && width > 0 && width <= 2048 && width < file.GetLength()/4)
if (height > 0 && height <= 2048 && width > 0 && width <= 2048 && width < file.GetLength()/4)
{
// The dimensions seem like they might be valid for a patch, so
// check the column directory for extra security. At least one