summaryrefslogtreecommitdiff
path: root/src/scenes/world_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenes/world_map.c')
-rw-r--r--src/scenes/world_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scenes/world_map.c b/src/scenes/world_map.c
index f96ba0e..3ef4cdb 100644
--- a/src/scenes/world_map.c
+++ b/src/scenes/world_map.c
@@ -667,16 +667,16 @@ static void world_map_draw_event_log(platform_window* window)
event* e = array_at(&_active_world->log.events, read_cursor);
float inner_pad = 5*scale;
-
s32 texth = renderer->render_text_cutoff(fnt, text_x+inner_pad, text_y+inner_pad, e->message, COLOR_TEXT, text_w-(inner_pad*2));
s32 highlight_w = text_w;
s32 highlight_h = texth+(inner_pad);
- if (e->type != EVENT_TYPE_INFO && mouse_interacts(text_x, text_y, highlight_w, highlight_h)) {
+ if (e->data != 0 && 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));
+ // data is 0 when loading from save file.
if (is_left_clicked()) {
switch (e->type)
{