From 9f08c73b3ce3ae99dd4375e25a59433c10b81d56 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sun, 23 Jul 2023 10:15:51 +0300 Subject: [PATCH] Add categoryUnhide --- src/mapper/mapper.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/mapper/mapper.cc b/src/mapper/mapper.cc index e5f20b6..38cfa5e 100644 --- a/src/mapper/mapper.cc +++ b/src/mapper/mapper.cc @@ -17,6 +17,7 @@ namespace fallout { +static int categoryUnhide(); static bool proto_user_is_librarian(); static void redraw_toolname(); static void clear_toolname(); @@ -27,12 +28,31 @@ static void mapper_mark_all_exit_grids(); // 0x559748 MapTransition mapInfo = { -1, -1, 0, 0 }; +// 0x5598AC +static int categoryWin = -1; + +// 0x5598B0 +static bool categoryIsHidden = false; + // 0x6EC4A8 unsigned char* tool; // 0x6EC4AC int tool_win; +// 0x487774 +int categoryUnhide() +{ + if (categoryWin == -1) { + return -1; + } + + windowShow(categoryWin); + categoryIsHidden = false; + + return 0; +} + // 0x487784 bool proto_user_is_librarian() {