mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Fixed mantis #1582
This commit is contained in:
		| @@ -1679,14 +1679,14 @@ void CBattleInterface::setHoveredStack(const CStack * stack) | ||||
|  | ||||
| void CBattleInterface::activateStack() | ||||
| { | ||||
| 	myTurn = true; | ||||
| 	if(!!attackerInt && defenderInt) //hotseat -> need to pick which interface "takes over" as active | ||||
| 		curInt = attackerInt->playerID == stackToActivate->owner ? attackerInt : defenderInt; | ||||
|  | ||||
| 	setActiveStack(stackToActivate); | ||||
| 	stackToActivate = nullptr; | ||||
| 	const CStack *s = activeStack; | ||||
|  | ||||
| 	myTurn = true; | ||||
| 	if(!!attackerInt && defenderInt) //hotseat -> need to pick which interface "takes over" as active | ||||
| 		curInt = attackerInt->playerID == s->owner ? attackerInt : defenderInt; | ||||
|  | ||||
| 	queue->update(); | ||||
| 	redrawBackgroundWithHexes(activeStack); | ||||
|  | ||||
| @@ -3672,4 +3672,4 @@ void CBattleInterface::showPiecesOfWall(SDL_Surface * to, std::vector<int> piece | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user