From 01a35cd5038906ab640c88ca2ac6adacc3e7332e Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 14 Dec 2020 00:40:32 +0100 Subject: [PATCH] fixed bug with tile selection cursor for MM game engine --- src/game_mm/mm_tools.c | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/game_mm/mm_tools.c b/src/game_mm/mm_tools.c index 28fe9bfe..0906862b 100644 --- a/src/game_mm/mm_tools.c +++ b/src/game_mm/mm_tools.c @@ -952,18 +952,6 @@ static void DrawTileCursor_Xsn(int draw_target) if (!active) return; - if (!active_last) - { - boolean no_delay = (debug || setup.debug.xsn_mode == TRUE); - - start_delay_value = (no_delay ? 0 : XSN_RND(XSN_START_DELAY * 2) * 1000); - started = FALSE; - - DelayReached(&start_delay, 0); - - reinitialize = TRUE; - } - if (!initialized) { xsn.area_xsize = gfx.win_xsize; @@ -1003,6 +991,17 @@ static void DrawTileCursor_Xsn(int draw_target) initialized = TRUE; } + if (!active_last) + { + start_delay_value = (debug || setup.debug.xsn_mode == TRUE ? 0 : + (XSN_START_DELAY + XSN_RND(XSN_START_DELAY)) * 1000); + started = FALSE; + + DelayReached(&start_delay, 0); + + reinitialize = TRUE; + } + if (reinitialize) { xsn.num_items = 0; -- 2.34.1