- Fixed: Checking for BUILD maps only worked if they came from unencrypted and

uncompressed sources.

SVN r2216 (trunk)
This commit is contained in:
Randy Heit 2010-03-18 01:07:50 +00:00
commit 054e5411bd
3 changed files with 22 additions and 11 deletions

View file

@ -145,8 +145,10 @@ static void Decrypt (void *to, const void *from, int len, int key);
bool P_IsBuildMap(MapData *map)
{
DWORD len = map->Size(ML_LABEL);
if (len < 4) return false;
if (len < 4)
{
return false;
}
BYTE *data = new BYTE[len];
map->Seek(ML_LABEL);