Browse Source

* possibly fixed problems with crashes on winning resources in creature bank

mateuszb 15 years ago
parent
commit
d3aa5b6820
1 changed files with 2 additions and 6 deletions
  1. 2 6
      client/CBattleInterface.cpp

+ 2 - 6
client/CBattleInterface.cpp

@@ -1418,6 +1418,8 @@ void CBattleInterface::deactivate()
 
 void CBattleInterface::show(SDL_Surface * to)
 {
+	if(bresult)
+		return;
 	std::map<int, CStack> stacks = curInt->cb->battleGetStacks(); //used in a few places
 	++animCount;
 	if(!to) //"evaluating" to
@@ -1653,12 +1655,6 @@ void CBattleInterface::show(SDL_Surface * to)
 	bConsoleUp->show(to);
 	bConsoleDown->show(to);
 
-	//showing window with result of battle
-	if(resWindow)
-	{
-		resWindow->show(to);
-	}
-
 	//showing in-game console
 	LOCPLINT->cingconsole->show(to);