From 79e320aa13ae26c5bb3a52d6b67098ade05ff776 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 9 Dec 2024 19:25:14 +0100 Subject: [PATCH] fixed initializing snow using changed window size --- src/game_mm/mm_tools.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game_mm/mm_tools.c b/src/game_mm/mm_tools.c index 9d688e14..b07a95fc 100644 --- a/src/game_mm/mm_tools.c +++ b/src/game_mm/mm_tools.c @@ -939,9 +939,6 @@ static void DrawTileCursor_Xsn(int draw_target) xsn.change_dir = 0; xsn.alpha = XSN_ALPHA_DEFAULT; - - for (i = 0; i < xsn.max_items; i++) - xsn_init_item(i); } if (xsn.area_xsize != gfx.win_xsize || @@ -951,6 +948,9 @@ static void DrawTileCursor_Xsn(int draw_target) xsn.area_xsize = gfx.win_xsize; xsn.area_ysize = gfx.win_ysize; + for (i = 0; i < xsn.max_items; i++) + xsn_init_item(i); + if (xsn.bitmap != NULL) FreeBitmap(xsn.bitmap); -- 2.34.1