X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=b66404ab0e7409a01d88279564cc3bb6ddec85c5;hb=47572a41886623747cb380fc127a814d00028c6f;hp=d98a4c1bb7085590176e46f3ed4f07274bc452e1;hpb=30cc9a5cf3f338d51fd1bd45a2c3af22c416cd03;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index d98a4c1b..b66404ab 100644 --- a/src/tools.c +++ b/src/tools.c @@ -486,7 +486,7 @@ void DrawLevelGraphicAnimation(int x, int y, int graphic) void DrawLevelElementAnimation(int x, int y, int element) { #if 1 - int graphic = el_act_dir2img(element, GfxAction[x][y], MovDir[x][y]); + int graphic = el_act_dir2img(element, GfxAction[x][y], GfxDir[x][y]); DrawGraphicAnimation(SCREENX(x), SCREENY(y), graphic); #else @@ -518,7 +518,7 @@ void DrawLevelElementAnimationIfNeeded(int x, int y, int element) if (!IN_LEV_FIELD(x, y) || !IN_SCR_FIELD(sx, sy)) return; - graphic = el_act_dir2img(element, GfxAction[x][y], MovDir[x][y]); + graphic = el_act_dir2img(element, GfxAction[x][y], GfxDir[x][y]); if (!IS_NEW_FRAME(GfxFrame[x][y], graphic)) return; @@ -1072,7 +1072,7 @@ void DrawScreenElementExt(int x, int y, int dx, int dy, int element, { SetRandomAnimationValue(lx, ly); - graphic = el_act_dir2img(element, GfxAction[lx][ly], MovDir[lx][ly]); + graphic = el_act_dir2img(element, GfxAction[lx][ly], GfxDir[lx][ly]); frame = getGraphicAnimationFrame(graphic, GfxFrame[lx][ly]); } else /* border element */