- DrawGraphicShifted(px,py,sxx,syy,
- el2gfx(Feld[nextJX][nextJY]),
- CUT_NO_CUTTING);
+ {
+ int element = Feld[nextJX][nextJY];
+ int graphic = el2gfx(element);
+
+ if (element == EL_FELSBROCKEN && sxx)
+ {
+ int phase = (PlayerGfxPos / (TILEX/4));
+
+ if (PlayerMovDir == MV_LEFT)
+ graphic += phase;
+ else
+ graphic += (phase+4)%4;
+
+
+ /*
+ printf("----> (%d, %d, %d)\n",
+ PlayerGfxPos, phase, graphic);
+ */
+
+ }
+
+ DrawGraphicShifted(px,py, sxx,syy, graphic, CUT_NO_CUTTING);
+ }