mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-20 20:23:03 +02:00
Quick workaround for xbrz terrain animations bug
This commit is contained in:
parent
7cc9aeaa41
commit
19e6a83c19
@ -12,6 +12,7 @@
|
||||
|
||||
#include "../renderSDL/SDL_Extensions.h"
|
||||
|
||||
#include "../lib/ExceptionsCommon.h"
|
||||
#include "../lib/filesystem/Filesystem.h"
|
||||
#include "../lib/vcmi_endian.h"
|
||||
|
||||
@ -112,6 +113,7 @@ SDL_Surface * BitmapHandler::loadBitmapFromDir(const ImagePath & path)
|
||||
|
||||
SDL_Surface * ret=nullptr;
|
||||
|
||||
try {
|
||||
auto readFile = CResourceHandler::get()->load(path)->readAll();
|
||||
|
||||
if (isPCX(readFile.first.get()))
|
||||
@ -146,6 +148,12 @@ SDL_Surface * BitmapHandler::loadBitmapFromDir(const ImagePath & path)
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (const DataLoadingException & e)
|
||||
{
|
||||
logGlobal->error("%s", e.what());
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// When modifying anything here please check two use cases:
|
||||
// 1) Vampire mansion in Necropolis (not 1st color is transparent)
|
||||
|
Loading…
Reference in New Issue
Block a user