1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Simplify infs2.

This commit is contained in:
Frank Zago
2009-05-23 01:23:09 +00:00
parent 564c8ae839
commit e3c3d3478d
3 changed files with 32 additions and 53 deletions

View File

@@ -350,10 +350,10 @@ SDL_Surface * BitmapHandler::loadBitmap(std::string fname, bool setKey)
}
else
{
int res = bitmaph->infs2(data, e->size, e->realSize, pcx);
if (res != 0)
if (!bitmaph->infs2(data, e->size, e->realSize, pcx))
{
tlog2<<"an error "<<res<<" occurred while extracting file "<<fname<<std::endl;
tlog2<<"an error occurred while extracting file "<<fname<<std::endl;
return NULL;
}
}
CPCXConv cp;