mirror of https://github.com/OpenRCT2/OpenRCT2.git
Remove LocationXY usage on openrct2\actions\RideDemolishAction.hpp
This commit is contained in:
parent
4f58fd5568
commit
48c2dc31bc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue