fixed pacman graphics for Mirror Magic game engine
[rocksndiamonds.git] / src / game_mm / mm_tools.c
index fc35608b2ec006410e38b780a56f60b34d1885b5..e037aac9cc838af2da1f0ecc7be98e3c16a92795 100644 (file)
@@ -271,7 +271,7 @@ void DrawScreenElementExt_MM(int x, int y, int dx, int dy, int element,
 
   if (element == EL_PACMAN)
   {
-    graphic += 4 * !phase2;
+    graphic = (phase2 ? IMG_MM_PACMAN_RIGHT : IMG_MM_PACMAN_EATING_RIGHT);
 
     if (dir == MV_UP)
       graphic += 1;
@@ -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);