From: Holger Schemel Date: Sun, 13 Dec 2020 23:40:32 +0000 (+0100) Subject: fixed bug with tile selection cursor for MM game engine X-Git-Tag: 4.2.1.0~56 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=01a35cd5038906ab640c88ca2ac6adacc3e7332e;p=rocksndiamonds.git fixed bug with tile selection cursor for MM game engine --- 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;