From 9faa427a286c16e3da3c4cb80ecd04e0f76a743c Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sun, 23 Jul 2023 09:52:59 +0300 Subject: [PATCH] Add clear_toolname --- src/mapper/mapper.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mapper/mapper.cc b/src/mapper/mapper.cc index 22b775c..a555404 100644 --- a/src/mapper/mapper.cc +++ b/src/mapper/mapper.cc @@ -12,6 +12,7 @@ namespace fallout { static void redraw_toolname(); +static void clear_toolname(); static int mapper_mark_exit_grid(); static void mapper_mark_all_exit_grids(); @@ -33,6 +34,15 @@ void redraw_toolname() windowRefreshRect(tool_win, &rect); } +// 0x48B278 +void clear_toolname() +{ + windowDrawText(tool_win, "", 120, _scr_size.right - _scr_size.left - 149, 60, 260); + windowDrawText(tool_win, "", 120, _scr_size.right - _scr_size.left - 149, 70, 260); + windowDrawText(tool_win, "", 120, _scr_size.right - _scr_size.left - 149, 80, 260); + redraw_toolname(); +} + // 0x48C604 int mapper_inven_unwield(Object* obj, int right_hand) {