Add tile_toggle_roof
This commit is contained in:
parent
cdfd308193
commit
4b51b2f29b
11
src/tile.cc
11
src/tile.cc
|
@ -654,6 +654,17 @@ static void tileRefreshGame(Rect* rect, int elevation)
|
||||||
gTileWindowRefreshProc(&rectToUpdate);
|
gTileWindowRefreshProc(&rectToUpdate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 0x4B1634
|
||||||
|
void tile_toggle_roof(bool refresh)
|
||||||
|
{
|
||||||
|
gTileRoofIsVisible = !gTileRoofIsVisible;
|
||||||
|
|
||||||
|
if (refresh) {
|
||||||
|
// NOTE: Uninline.
|
||||||
|
tileWindowRefresh();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 0x4B166C
|
// 0x4B166C
|
||||||
int tileRoofIsVisible()
|
int tileRoofIsVisible()
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,6 +26,7 @@ void tileEnable();
|
||||||
void tileWindowRefreshRect(Rect* rect, int elevation);
|
void tileWindowRefreshRect(Rect* rect, int elevation);
|
||||||
void tileWindowRefresh();
|
void tileWindowRefresh();
|
||||||
int tileSetCenter(int tile, int flags);
|
int tileSetCenter(int tile, int flags);
|
||||||
|
void tile_toggle_roof(bool refresh);
|
||||||
int tileRoofIsVisible();
|
int tileRoofIsVisible();
|
||||||
int tileToScreenXY(int tile, int* x, int* y, int elevation);
|
int tileToScreenXY(int tile, int* x, int* y, int elevation);
|
||||||
int tileFromScreenXY(int x, int y, int elevation, bool ignoreBounds = false);
|
int tileFromScreenXY(int x, int y, int elevation, bool ignoreBounds = false);
|
||||||
|
|
Loading…
Reference in New Issue