Remove unused function tile_element_check_address()

This commit is contained in:
Michael Steenbeek 2018-03-08 12:47:13 +01:00
parent 7a982503a8
commit c7a78807e6
2 changed files with 0 additions and 18 deletions

View File

@ -3167,23 +3167,6 @@ rct_tile_element *tile_element_insert(sint32 x, sint32 y, sint32 z, sint32 flags
return insertedElement;
}
/**
* This function will validate element address. It will only check if element lies within
* the user-accessible part of map elements, there is some scratch space behind that is not
* considered valid here.
*/
bool tile_element_check_address(const rct_tile_element * const element)
{
if (element >= gTileElements
&& element < gTileElements + MAX_TILE_ELEMENTS
// condition below checks alignment
&& gTileElements + (((uintptr_t)element - (uintptr_t)gTileElements) / sizeof(rct_tile_element)) == element)
{
return true;
}
return false;
}
/**
*
* rct2: 0x0068BB18

View File

@ -459,7 +459,6 @@ void map_invalidate_selection_rect();
void map_reorganise_elements();
bool map_check_free_elements_and_reorganise(sint32 num_elements);
rct_tile_element *tile_element_insert(sint32 x, sint32 y, sint32 z, sint32 flags);
bool tile_element_check_address(const rct_tile_element * const element);
using CLEAR_FUNC = sint32(*)(rct_tile_element** tile_element, sint32 x, sint32 y, uint8 flags, money32* price);