mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-02 23:07:36 +02:00
Fix loading "" bitmap at game start
This commit is contained in:
parent
a4e550e3cf
commit
d5327f3daf
@ -465,7 +465,15 @@ CAdvMapInt::CAdvMapInt():
|
|||||||
townList.onSelect = std::bind(&CAdvMapInt::selectionChanged,this);
|
townList.onSelect = std::bind(&CAdvMapInt::selectionChanged,this);
|
||||||
adventureInt=this;
|
adventureInt=this;
|
||||||
bg = BitmapHandler::loadBitmap(ADVOPT.mainGraphic);
|
bg = BitmapHandler::loadBitmap(ADVOPT.mainGraphic);
|
||||||
|
if (ADVOPT.worldViewGraphic != "")
|
||||||
|
{
|
||||||
bgWorldView = BitmapHandler::loadBitmap(ADVOPT.worldViewGraphic);
|
bgWorldView = BitmapHandler::loadBitmap(ADVOPT.worldViewGraphic);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
bgWorldView = nullptr;
|
||||||
|
logGlobal->warnStream() << "ADVOPT.worldViewGraphic is empty => bitmap not loaded";
|
||||||
|
}
|
||||||
scrollingDir = 0;
|
scrollingDir = 0;
|
||||||
updateScreen = false;
|
updateScreen = false;
|
||||||
anim=0;
|
anim=0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user