rnd-20070902-1-src
[rocksndiamonds.git] / src / game_em / graphics.c
index a908126ccc1d142bd65701d91618abcefd7ac415..d49af1d19357d01eefe1d1d0e4144fcb243c1e5c 100644 (file)
@@ -149,11 +149,26 @@ static struct GraphicInfo_EM *getObjectGraphic(int x, int y)
   int tile = Draw[y][x];
   struct GraphicInfo_EM *g = &graphic_info_em_object[tile][frame];
 
+#if 0
+  int foo = (int)g->crumbled_bitmap;
+#endif
+
+#if 1
+  if (!game.use_native_emc_graphics_engine)
+    getGraphicSourceObjectExt_EM(g, tile, frame, x - 2, y - 2);
+#else
   if (!game.use_native_emc_graphics_engine)
     getGraphicSourceObjectExt_EM(tile, frame, &g->bitmap, &g->src_x, &g->src_y,
                                 &g->crumbled_bitmap,
                                 &g->crumbled_src_x, &g->crumbled_src_y,
                                 x - 2, y - 2);
+#endif
+
+#if 0
+  if (foo != g->crumbled_bitmap)
+    printf("::: tile %d, %08x --> %08x\n", tile, foo, g->crumbled_bitmap);
+#endif
+
   return g;
 }