mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-27 21:49:10 +02:00
Fixed #868 - wrong battlefield in ship-to-ship combat
This commit is contained in:
parent
00c31b4b85
commit
e2d44f6ac6
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user