Only use abort() for fatal conditions: abort() cleanup patch.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7521 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2009-05-23 19:48:22 +00:00 committed by Git SVN Gateway
parent c541cc63f0
commit 59a1576ddb
1 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ BOOL mapNew(UDWORD width, UDWORD height)
if (width*height > MAP_MAXAREA)
{
debug(LOG_ERROR, "map too large : %u %u", width, height);
abort();
return false;
}
@ -2088,7 +2088,7 @@ bool readVisibilityData(const char* fileName)
{
PHYSFS_close(fileHandle);
ASSERT(!"readVisibilityData: unexpected filesize", "readVisibilityData: unexpected filesize; should be %u, but is %u", expectedFileSize, fileSize);
abort();
return false;
}