1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Close #12444: Refactor TILE_INSPECTOR_PAGE to use strong enum (#13134)

This commit is contained in:
amdoku
2021-01-03 14:30:59 +01:00
committed by GitHub
parent 44d595835a
commit 85efe047bb
5 changed files with 133 additions and 107 deletions

View File

@@ -14,6 +14,8 @@
#include <list>
#include <memory>
enum class TileInspectorPage : int16_t;
struct ResearchItem;
struct rct_object_entry;
@@ -57,7 +59,11 @@ struct rct_window
error_variables error;
void* custom_info;
};
int16_t page;
union
{
int16_t page;
TileInspectorPage tileInspectorPage;
};
union
{
int16_t picked_peep_old_x; // staff/guest window: peep x gets set to 0x8000 on pickup, this is the old value