projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added touch controls (follow finger) for MM game engine on Android
[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 a2b7e4510f3b41bff021f538a531c42161306c89..93ab822122fb4a5acfa3a15fa98f4122ada429d0 100644
(file)
--- a/
src/game_mm/mm_tools.c
+++ b/
src/game_mm/mm_tools.c
@@
-517,6
+517,11
@@
void DrawElement_MM(int x, int y, int element)
#endif
else if (element == EL_PACMAN)
DrawLevelField_MM(x, y);
#endif
else if (element == EL_PACMAN)
DrawLevelField_MM(x, y);
+ else if (element == EL_FUSE_ON &&
+ laser.fuse_off &&
+ laser.fuse_x == x &&
+ laser.fuse_y == y)
+ DrawGraphic_MM(x, y, IMG_MM_FUSE);
else
DrawGraphic_MM(x, y, el2gfx(element));
}
else
DrawGraphic_MM(x, y, el2gfx(element));
}
@@
-739,6
+744,7
@@
int el2gfx(int element)
void RedrawPlayfield_MM()
{
DrawLevel_MM();
void RedrawPlayfield_MM()
{
DrawLevel_MM();
+ DrawLaser_MM();
}
void BlitScreenToBitmap_MM(Bitmap *target_bitmap)
}
void BlitScreenToBitmap_MM(Bitmap *target_bitmap)