mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
* possibly fixed problems with crashes on winning resources in creature bank
This commit is contained in:
@@ -1418,6 +1418,8 @@ void CBattleInterface::deactivate()
|
|||||||
|
|
||||||
void CBattleInterface::show(SDL_Surface * to)
|
void CBattleInterface::show(SDL_Surface * to)
|
||||||
{
|
{
|
||||||
|
if(bresult)
|
||||||
|
return;
|
||||||
std::map<int, CStack> stacks = curInt->cb->battleGetStacks(); //used in a few places
|
std::map<int, CStack> stacks = curInt->cb->battleGetStacks(); //used in a few places
|
||||||
++animCount;
|
++animCount;
|
||||||
if(!to) //"evaluating" to
|
if(!to) //"evaluating" to
|
||||||
@@ -1653,12 +1655,6 @@ void CBattleInterface::show(SDL_Surface * to)
|
|||||||
bConsoleUp->show(to);
|
bConsoleUp->show(to);
|
||||||
bConsoleDown->show(to);
|
bConsoleDown->show(to);
|
||||||
|
|
||||||
//showing window with result of battle
|
|
||||||
if(resWindow)
|
|
||||||
{
|
|
||||||
resWindow->show(to);
|
|
||||||
}
|
|
||||||
|
|
||||||
//showing in-game console
|
//showing in-game console
|
||||||
LOCPLINT->cingconsole->show(to);
|
LOCPLINT->cingconsole->show(to);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user