projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added support for custom graphics for many elements of MM game engine
[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..1f23bc902c0114420e544d7ed68635a391cb98a1 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);
}
@@
-1291,9
+1293,6
@@
int el2gfx(int element)
switch (element)
{
switch (element)
{
- case EL_LIGHTBALL:
- return IMG_MM_LIGHTBALL_RED + RND(3);
-
default:
return el2img_mm(element);
}
default:
return el2img_mm(element);
}