mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Renamed "Int" -> "Window" in WindowHandler API
This commit is contained in:
@@ -669,7 +669,7 @@ void BattleActionsController::actionRealize(PossiblePlayerBattleAction action, B
|
||||
|
||||
case PossiblePlayerBattleAction::CREATURE_INFO:
|
||||
{
|
||||
GH.windows().pushIntT<CStackWindow>(targetStack, false);
|
||||
GH.windows().createAndPushWindow<CStackWindow>(targetStack, false);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -974,7 +974,7 @@ void BattleActionsController::onHexRightClicked(BattleHex clickedHex)
|
||||
auto selectedStack = owner.curInt->cb->battleGetStackByPos(clickedHex, true);
|
||||
|
||||
if (selectedStack != nullptr)
|
||||
GH.windows().pushIntT<CStackWindow>(selectedStack, true);
|
||||
GH.windows().createAndPushWindow<CStackWindow>(selectedStack, true);
|
||||
|
||||
if (clickedHex == BattleHex::HERO_ATTACKER && owner.attackingHero)
|
||||
owner.attackingHero->heroRightClicked();
|
||||
|
||||
Reference in New Issue
Block a user