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
1 changed files with 2 additions and 2 deletions

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;