projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20070822-1-src
[rocksndiamonds.git]
/
src
/
game_em
/
graphics.c
diff --git
a/src/game_em/graphics.c
b/src/game_em/graphics.c
index f33d4db800e610b6f53ead1bb26fd9aee8d6f261..a908126ccc1d142bd65701d91618abcefd7ac415 100644
(file)
--- a/
src/game_em/graphics.c
+++ b/
src/game_em/graphics.c
@@
-151,6
+151,8
@@
static struct GraphicInfo_EM *getObjectGraphic(int x, int y)
if (!game.use_native_emc_graphics_engine)
getGraphicSourceObjectExt_EM(tile, frame, &g->bitmap, &g->src_x, &g->src_y,
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);
return g;
}
x - 2, y - 2);
return g;
}
@@
-220,6
+222,13
@@
static void DrawLevelFieldCrumbled_EM(int x, int y, int sx, int sy,
if (crm == 0) /* no crumbled edges for this tile */
return;
if (crm == 0) /* no crumbled edges for this tile */
return;
+#if 0
+ if (x == 3 && y == 3 && frame == 0)
+ printf("::: %d, %d\n",
+ graphic_info_em_object[207][0].crumbled_src_x,
+ graphic_info_em_object[207][0].crumbled_src_y);
+#endif
+
for (i = 0; i < 4; i++)
{
if (crm & (1 << i))
for (i = 0; i < 4; i++)
{
if (crm & (1 << i))