1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 08:14:38 +01:00

Remove unused Map::rotate_map_coordinates() function (#10362)

This commit is contained in:
Tulio Leao
2019-12-12 14:53:24 -03:00
committed by Michael Steenbeek
parent 2ff4c28cb5
commit 440f012e8a
2 changed files with 0 additions and 26 deletions

View File

@@ -112,31 +112,6 @@ bool gMapLandRightsUpdateSuccess;
static void clear_elements_at(const CoordsXY& loc);
static ScreenCoordsXY translate_3d_to_2d(int32_t rotation, const CoordsXY& pos);
void rotate_map_coordinates(int16_t* x, int16_t* y, int32_t rotation)
{
int32_t temp;
switch (rotation)
{
case TILE_ELEMENT_DIRECTION_WEST:
break;
case TILE_ELEMENT_DIRECTION_NORTH:
temp = *x;
*x = *y;
*y = -temp;
break;
case TILE_ELEMENT_DIRECTION_EAST:
*x = -*x;
*y = -*y;
break;
case TILE_ELEMENT_DIRECTION_SOUTH:
temp = *y;
*y = *x;
*x = -temp;
break;
}
}
void tile_element_iterator_begin(tile_element_iterator* it)
{
it->x = 0;