From 661c68902959a4909b088f92ff77f5b30fd8bd1d Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sun, 23 Jul 2023 10:19:02 +0300 Subject: [PATCH] Add categoryExit --- src/mapper/mapper.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/mapper/mapper.cc b/src/mapper/mapper.cc index 65af3cf..a33d59a 100644 --- a/src/mapper/mapper.cc +++ b/src/mapper/mapper.cc @@ -17,6 +17,7 @@ namespace fallout { +static int categoryExit(); static int categoryHide(); static int categoryToggleState(); static int categoryUnhide(); @@ -42,6 +43,19 @@ unsigned char* tool; // 0x6EC4AC int tool_win; +// 0x487700 +int categoryExit() +{ + if (categoryWin == -1) { + return -1; + } + + windowDestroy(categoryWin); + categoryWin = -1; + + return 0; +} + // 0x487728 int categoryHide() {