1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +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;

View File

@@ -182,7 +182,6 @@ bool map_can_construct_with_clear_at(
int32_t x, int32_t y, int32_t zLow, int32_t zHigh, CLEAR_FUNC clearFunc, QuarterTile quarterTile, uint8_t flags,
money32* price, uint8_t crossingMode);
int32_t map_can_construct_at(int32_t x, int32_t y, int32_t zLow, int32_t zHigh, QuarterTile bl);
void rotate_map_coordinates(int16_t* x, int16_t* y, int32_t rotation);
struct tile_element_iterator
{