1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Remove LocationXY usage on openrct2\actions\RideDemolishAction.hpp

This commit is contained in:
Tulio Leao
2019-12-24 17:23:09 -03:00
parent 4f58fd5568
commit 48c2dc31bc

View File

@@ -330,7 +330,7 @@ private:
continue;
}
static constexpr const LocationXY16 DirOffsets[] = {
static constexpr const CoordsXY DirOffsets[] = {
{ 0, 0 },
{ 0, 16 },
{ 16, 16 },
@@ -339,7 +339,7 @@ private:
for (Direction dir : ALL_DIRECTIONS)
{
const LocationXY16& off = DirOffsets[dir];
const CoordsXY& off = DirOffsets[dir];
money32 removePrice = MazeRemoveTrack(x + off.x, y + off.y, z, dir);
if (removePrice != MONEY32_UNDEFINED)
refundPrice += removePrice;