Add tile_toggle_roof

This commit is contained in:
Alexander Batalov 2023-07-23 14:15:20 +03:00
parent cdfd308193
commit 4b51b2f29b
2 changed files with 12 additions and 0 deletions

View File

@ -654,6 +654,17 @@ static void tileRefreshGame(Rect* rect, int elevation)
gTileWindowRefreshProc(&rectToUpdate);
}
// 0x4B1634
void tile_toggle_roof(bool refresh)
{
gTileRoofIsVisible = !gTileRoofIsVisible;
if (refresh) {
// NOTE: Uninline.
tileWindowRefresh();
}
}
// 0x4B166C
int tileRoofIsVisible()
{

View File

@ -26,6 +26,7 @@ void tileEnable();
void tileWindowRefreshRect(Rect* rect, int elevation);
void tileWindowRefresh();
int tileSetCenter(int tile, int flags);
void tile_toggle_roof(bool refresh);
int tileRoofIsVisible();
int tileToScreenXY(int tile, int* x, int* y, int elevation);
int tileFromScreenXY(int x, int y, int elevation, bool ignoreBounds = false);