talking and shopping: don't pass click events forward

Fix #567
This commit is contained in:
2025-02-04 08:59:55 -06:00
parent 3ad647c700
commit 081d237cbf

View File

@@ -258,7 +258,7 @@ bool handle_shop_event(location p, cFramerateLimiter& fps_limiter) {
return true; return true;
} }
} }
return false; return p.in(rectangle(talk_gworld));
} }
void handle_sale(int i) { void handle_sale(int i) {
@@ -1153,7 +1153,7 @@ bool handle_talk_event(location p, cFramerateLimiter& fps_limiter) {
break; break;
} }
handle_talk_node(which_talk_entry); handle_talk_node(which_talk_entry);
return clicked_word; return clicked_word || p.in(rectangle(talk_gworld));
} }
//town_num; // Will be 0 - 200 for town, 200 - 290 for outdoors //town_num; // Will be 0 - 200 for town, 200 - 290 for outdoors