projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added new config file options to hide shortcuts sub-menus
[rocksndiamonds.git]
/
src
/
game_mm
/
mm_tools.c
diff --git
a/src/game_mm/mm_tools.c
b/src/game_mm/mm_tools.c
index 3fb8b4bb64da0b2f7e4e6a284c683368dcd6f510..2c34884abb7dd4d2ece638e99062a4044ccd6188 100644
(file)
--- a/
src/game_mm/mm_tools.c
+++ b/
src/game_mm/mm_tools.c
@@
-75,7
+75,9
@@
void DrawGraphic_MM(int x, int y, int graphic)
}
#endif
}
#endif
- DrawGraphicExt_MM(drawto_field, cFX + x * TILEX, cFY + y * TILEY, graphic);
+ int frame = getGraphicAnimationFrameXY(graphic, x, y);
+
+ DrawGraphicAnimation_MM(x, y, graphic, frame);
MarkTileDirty(x, y);
}
MarkTileDirty(x, y);
}
@@
-1287,16
+1289,7
@@
static int map_element(int element)
int el2gfx(int element)
{
int el2gfx(int element)
{
- element = map_element(element);
-
- switch (element)
- {
- case EL_LIGHTBALL:
- return IMG_MM_LIGHTBALL_RED + RND(3);
-
- default:
- return el2img_mm(element);
- }
+ return el2img_mm(map_element(element));
}
void RedrawPlayfield_MM(void)
}
void RedrawPlayfield_MM(void)