projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9586f78
)
fixed initializing snow using changed window size
author
Holger Schemel
<holger.schemel@virtion.de>
Mon, 9 Dec 2024 18:25:14 +0000
(19:25 +0100)
committer
Holger Schemel
<holger.schemel@virtion.de>
Mon, 9 Dec 2024 12:25:58 +0000
(13:25 +0100)
src/game_mm/mm_tools.c
patch
|
blob
|
history
diff --git
a/src/game_mm/mm_tools.c
b/src/game_mm/mm_tools.c
index 9d688e14149d6c5331351d35f163dc912e158119..b07a95fcc154880fc8cd2d55296b4fc022072d38 100644
(file)
--- 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);