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

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2020-03-09 15:00:13 +01:00
1 parent 8737d3c2f0
commit e1427df59f
1 file changed
+2 -2
+2 -2
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 };
}
};