From 63bb02e5c6c10ebdf0eabec0c20d7e8993cb5ee7 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 1 Dec 2024 10:26:15 +0100 Subject: close #34 --- src/scenes/world_map.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/scenes') diff --git a/src/scenes/world_map.c b/src/scenes/world_map.c index 2642bdb..1053420 100644 --- a/src/scenes/world_map.c +++ b/src/scenes/world_map.c @@ -668,7 +668,7 @@ static void world_map_draw_event_log(platform_window* window) s32 highlight_w = text_w; s32 highlight_h = texth+(inner_pad); - if (mouse_interacts(text_x, text_y, highlight_w, highlight_h)) { + if (e->type != EVENT_TYPE_INFO && mouse_interacts(text_x, text_y, highlight_w, highlight_h)) { platform_set_cursor(window, CURSOR_POINTER); renderer->render_rectangle(text_x, text_y, text_w, highlight_h, rgba(255,255,255,20)); @@ -688,6 +688,8 @@ static void world_map_draw_event_log(platform_window* window) place_detail_show_schedule_with_highlighted_job((world_location*)e->data, 0, e->job_time); break; + case EVENT_TYPE_INFO: break; + default: log_assert(0, "Invalid event type."); break; -- cgit v1.2.3-70-g09d2