File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -481,6 +481,13 @@ struct tradeview_hook : public df::viewscreen_tradegoodsst
481481 {
482482 INTERPOSE_NEXT (render)();
483483
484+ if (counteroffer.size () > 0 )
485+ {
486+ // The merchant is proposing a counteroffer,
487+ // so there is nothing to mark.
488+ return ;
489+ }
490+
484491 // Insert into the blank line between trade items and standard keys.
485492 // The blank line at the bottom is taken by the search plugin.
486493 auto dim = Screen::getWindowSize ();
Original file line number Diff line number Diff line change @@ -1074,6 +1074,14 @@ class trade_search_merc : public trade_search_base
10741074public:
10751075 virtual void render () const
10761076 {
1077+ if (viewscreen->counteroffer .size () > 0 )
1078+ {
1079+ // The merchant is proposing a counteroffer.
1080+ // Not only is there nothing to search,
1081+ // but the native hotkeys are where we normally write.
1082+ return ;
1083+ }
1084+
10771085 print_search_option (2 , -1 );
10781086
10791087 if (!search_string.empty ())
@@ -1116,6 +1124,14 @@ class trade_search_fort : public trade_search_base
11161124public:
11171125 virtual void render () const
11181126 {
1127+ if (viewscreen->counteroffer .size () > 0 )
1128+ {
1129+ // The merchant is proposing a counteroffer.
1130+ // Not only is there nothing to search,
1131+ // but the native hotkeys are where we normally write.
1132+ return ;
1133+ }
1134+
11191135 print_search_option (42 , -1 );
11201136
11211137 if (!search_string.empty ())
You can’t perform that action at this time.
0 commit comments