1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-05 13:04:54 +02:00

Fix moat rendering position

This commit is contained in:
Ivan Savenko 2022-11-29 17:18:43 +02:00
parent de5616bb3b
commit 6d4bcba842

View File

@ -250,10 +250,10 @@ void CBattleSiegeController::gateStateChanged(const EGateState state)
void CBattleSiegeController::showAbsoluteObstacles(std::shared_ptr<CCanvas> canvas, const Point & offset)
{
if (getWallPieceExistance(EWallVisual::MOAT))
showWallPiece(canvas, EWallVisual::MOAT, owner->pos.topLeft());
showWallPiece(canvas, EWallVisual::MOAT, offset);
if (getWallPieceExistance(EWallVisual::MOAT_BANK))
showWallPiece(canvas, EWallVisual::MOAT_BANK, owner->pos.topLeft());
showWallPiece(canvas, EWallVisual::MOAT_BANK, offset);
}
void CBattleSiegeController::showBattlefieldObjects(std::shared_ptr<CCanvas> canvas, const BattleHex & location )