mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
Fixed #868 - wrong battlefield in ship-to-ship combat
This commit is contained in:
@ -764,6 +764,8 @@ BattleInfo * CGameState::setupBattle(int3 tile, const CArmedInstance *armies[2],
|
|||||||
terrain = ETerrainType::SAND;
|
terrain = ETerrainType::SAND;
|
||||||
|
|
||||||
BFieldType terType = battleGetBattlefieldType(tile);
|
BFieldType terType = battleGetBattlefieldType(tile);
|
||||||
|
if (heroes[0] && heroes[0]->boat && heroes[1] && heroes[1]->boat)
|
||||||
|
terType = BFieldType::SHIP_TO_SHIP;
|
||||||
return BattleInfo::setupBattle(tile, terrain, terType, armies, heroes, creatureBank, town);
|
return BattleInfo::setupBattle(tile, terrain, terType, armies, heroes, creatureBank, town);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user