1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 20:13:07 +01:00

Fix #10899: Position of money animation is incorrect (#10903)

This commit is contained in:
Michael Steenbeek
2020-03-09 15:00:13 +01:00
committed by GitHub
parent 8737d3c2f0
commit e1427df59f

View File

@@ -343,7 +343,7 @@ struct CoordsXYZ : public CoordsXY
CoordsXYZ ToTileCentre() const
{
return ToTileStart() + CoordsXYZ{ (COORDS_XY_STEP / 2), (COORDS_XY_STEP / 2), z };
return ToTileStart() + CoordsXYZ{ (COORDS_XY_STEP / 2), (COORDS_XY_STEP / 2), 0 };
}
};
@@ -519,7 +519,7 @@ struct CoordsXYZD : public CoordsXYZ
CoordsXYZD ToTileCentre() const
{
return ToTileStart() + CoordsXYZD{ (COORDS_XY_STEP / 2), (COORDS_XY_STEP / 2), z, direction };
return ToTileStart() + CoordsXYZD{ (COORDS_XY_STEP / 2), (COORDS_XY_STEP / 2), 0, 0 };
}
};