mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2024-11-19 14:11:15 +00:00
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);
|
||||
}
|
||||
|
||||
// 0x4B1634
|
||||
void tile_toggle_roof(bool refresh)
|
||||
{
|
||||
gTileRoofIsVisible = !gTileRoofIsVisible;
|
||||
|
||||
if (refresh) {
|
||||
// NOTE: Uninline.
|
||||
tileWindowRefresh();
|
||||
}
|
||||
}
|
||||
|
||||
// 0x4B166C
|
||||
int tileRoofIsVisible()
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user