summaryrefslogtreecommitdiff
path: root/src/scenes/world_map.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-12-01 10:26:15 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-12-01 10:26:15 +0100
commit63bb02e5c6c10ebdf0eabec0c20d7e8993cb5ee7 (patch)
tree90c70f01e87e7926f3bebf5e08cc30b6b006bc1c /src/scenes/world_map.c
parentda90ecb4c88d81568c14b060a6a05508c2b37f35 (diff)
close #34
Diffstat (limited to 'src/scenes/world_map.c')
-rw-r--r--src/scenes/world_map.c4
1 files changed, 3 insertions, 1 deletions
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;