X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=761aa4a88580bced42c7eb77704e92fe722f5870;hb=818bda3a0148d769381987629ebb8908bdad4826;hp=369e0488f9c81eebd52549ea9b348267d1f036bb;hpb=87faaa07872dcc20b7a36a720529d284fc4447fd;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index 369e0488..761aa4a8 100644 --- a/src/tools.c +++ b/src/tools.c @@ -707,7 +707,12 @@ void DrawPlayer(struct PlayerInfo *player) NO_CUTTING); else { +#if 1 + int element = Feld[jx][jy]; +#else int element = Feld[next_jx][next_jy]; +#endif + int graphic = el2img(element); int frame = 0; @@ -739,10 +744,14 @@ void DrawPlayer(struct PlayerInfo *player) if (player_is_moving && last_element == EL_EXPLOSION) { +#if 1 + int graphic = el_act2img(GfxElement[last_jx][last_jy], ACTION_EXPLODING); +#else int stored = Store[last_jx][last_jy]; int graphic = (game.emulation != EMU_SUPAPLEX ? IMG_EXPLOSION : stored == EL_SP_INFOTRON ? IMG_SP_EXPLOSION_INFOTRON : IMG_SP_EXPLOSION); +#endif int delay = (game.emulation == EMU_SUPAPLEX ? 3 : 2); int phase = ExplodePhase[last_jx][last_jy] - 1; int frame = getGraphicAnimationFrame(graphic, phase - delay);