1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

changed most of std::cout to tlogX

Alt+F4 quits the game
This commit is contained in:
mateuszb
2008-09-19 12:09:15 +00:00
parent f97628e67f
commit ca1dbfe949
14 changed files with 60 additions and 48 deletions

View File

@ -277,7 +277,7 @@ SDL_Surface * BitmapHandler::loadBitmap(std::string fname, bool setKey)
Entry *e = bitmaph->entries.znajdz(fname);
if(!e)
{
std::cout<<"File "<<fname<<" not found"<<std::endl;
tlog2<<"File "<<fname<<" not found"<<std::endl;
return NULL;
}
if(e->offset<0)
@ -339,7 +339,7 @@ SDL_Surface * BitmapHandler::loadBitmap(std::string fname, bool setKey)
int res=bitmaph->infs2(pcd,e->size,e->realSize,pcx);
if(res!=0)
{
std::cout<<"an error "<<res<<" occured while extracting file "<<fname<<std::endl;
tlog2<<"an error "<<res<<" occured while extracting file "<<fname<<std::endl;
}
delete [] pcd;
}