-inline static int getFramePosition(int x, int y)
-{
- int frame_pos = -1; /* default: global synchronization */
-#if 0
- int element = Feld[x][y];
-
- if (element == EL_QUICKSAND_FULL ||
- element == EL_MAGIC_WALL_FULL ||
- element == EL_BD_MAGIC_WALL_FULL)
- frame_pos = -1;
- else if (IS_MOVING(x, y) || CAN_MOVE(element) || CAN_FALL(element))
- frame_pos = ABS(MovPos[x][y]) / (TILEX / 8);
-#else
-
- frame_pos = ABS(MovPos[x][y]) / (TILEX / 8);
-
- frame_pos = GfxFrame[x][y];
-
-#endif
-
- return frame_pos;
-}
-
-inline static int getGfxAction(int x, int y)
-{
- int gfx_action = ACTION_DEFAULT;
-
-#if 0
- if (GfxAction[x][y] != ACTION_DEFAULT)
- gfx_action = GfxAction[x][y];
- else if (IS_MOVING(x, y))
- gfx_action = ACTION_MOVING;
-#else
- gfx_action = GfxAction[x][y];
-#endif
-
-#if DEBUG
- if (gfx_action < 0)
- printf("getGfxAction: THIS SHOULD NEVER HAPPEN: GfxAction[%d][%d] == %d\n",
- x, y, gfx_action);
-#endif
-
- return gfx_action;
-}
-