From: Holger Schemel Date: Mon, 9 Dec 2024 18:25:14 +0000 (+0100) Subject: fixed initializing snow using changed window size X-Git-Tag: 4.4.0.0-test-6~22 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=79e320aa13ae26c5bb3a52d6b67098ade05ff776;p=rocksndiamonds.git fixed initializing snow using changed window size --- 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);