From: Holger Schemel Date: Mon, 20 Feb 2017 07:51:27 +0000 (+0100) Subject: fixed wall animations for Mirror Magic game engine X-Git-Tag: 4.1.0.0~203 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=2e255c50ce0d6725e69da61dcf0f7254874da15e;p=rocksndiamonds.git fixed wall animations for Mirror Magic game engine --- diff --git a/src/game_mm/mm_main.h b/src/game_mm/mm_main.h index f20a412d..c1565922 100644 --- a/src/game_mm/mm_main.h +++ b/src/game_mm/mm_main.h @@ -254,6 +254,7 @@ extern int num_element_info; #define EY (DY + 178) #define TILEX TILESIZE #define TILEY TILESIZE +#define MINI_TILESIZE (TILESIZE / 2) #define MINI_TILEX (TILEX / 2) #define MINI_TILEY (TILEY / 2) #define MICRO_TILEX (TILEX / 4) diff --git a/src/game_mm/mm_tools.c b/src/game_mm/mm_tools.c index fc35608b..dbe6ab21 100644 --- a/src/game_mm/mm_tools.c +++ b/src/game_mm/mm_tools.c @@ -508,7 +508,8 @@ void DrawWallsAnimation_MM(int x, int y, int element, int phase, int bit_mask) frame = 0; } - getGraphicSource(graphic, frame, &bitmap, &src_x, &src_y); + getSizedGraphicSource(graphic, frame, MINI_TILESIZE, &bitmap, + &src_x, &src_y); BlitBitmap(bitmap, drawto, src_x, src_y, MINI_TILEX, MINI_TILEY, dst_x, dst_y);