X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fgraphics.c;h=a908126ccc1d142bd65701d91618abcefd7ac415;hb=66a60ab1d501cd3a7a666b3012702455927b3b13;hp=f33d4db800e610b6f53ead1bb26fd9aee8d6f261;hpb=17c2de428378f092f928b516a5efc93fa12479e7;p=rocksndiamonds.git diff --git a/src/game_em/graphics.c b/src/game_em/graphics.c index f33d4db8..a908126c 100644 --- 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, + &g->crumbled_bitmap, + &g->crumbled_src_x, &g->crumbled_src_y, 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 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))