diff --git a/src/game/boe.actions.cpp b/src/game/boe.actions.cpp index bc73ec1e..26fd3d9a 100644 --- a/src/game/boe.actions.cpp +++ b/src/game/boe.actions.cpp @@ -1778,7 +1778,7 @@ void show_inventory() { // Most give_help() calls don't need to be recorded, because // they are triggered incidentally by other recorded actions. -static void give_help_and_record(short help1, short help2) { +void give_help_and_record(short help1, short help2) { if(recording){ std::map info; std::ostringstream sstr; diff --git a/src/game/boe.actions.hpp b/src/game/boe.actions.hpp index f395031d..2822454d 100644 --- a/src/game/boe.actions.hpp +++ b/src/game/boe.actions.hpp @@ -94,5 +94,6 @@ void handle_print_pc_sp(int which_pc); void handle_trade_places(int which_pc); void handle_begin_talk(bool& need_reprint); void handle_talk(location destination, bool& did_something, bool& need_redraw, bool& need_reprint); +void give_help_and_record(short help1, short help2); #endif diff --git a/src/game/boe.dlgutil.cpp b/src/game/boe.dlgutil.cpp index 549a5cb6..1bb80871 100644 --- a/src/game/boe.dlgutil.cpp +++ b/src/game/boe.dlgutil.cpp @@ -59,6 +59,7 @@ extern sf::RenderWindow mini_map; extern cUniverse univ; extern sf::Texture pc_gworld; extern std::map skill_max; +extern void give_help_and_record(short help1, short help2); short sign_mode,person_graphic,store_person_graphic,store_sign_mode; long num_talk_entries; @@ -213,7 +214,7 @@ void handle_shop_event(location p, cFramerateLimiter& fps_limiter) { if(p.in(talk_help_rect)) { if(!help_btn->handleClick(p, fps_limiter)) return; - give_help(226,27); + give_help_and_record(226,27); return; } @@ -719,7 +720,7 @@ void handle_talk_event(location p, cFramerateLimiter& fps_limiter) { if(p.in(talk_help_rect)) { if(!help_btn->handleClick(p, fps_limiter)) return; - give_help(205,6); + give_help_and_record(205,6); return; }