// use native frame handling (undo frame incrementation in main loop)
if (game.use_native_sp_graphics_engine)
- GfxFrame[lx][ly]--;
+ GfxFrameSP[lx][ly]--;
// get last random animation delay
bl = SgnHighByte(PlayField16[si]);
graphic = (bl < 8 ? aniTerminal : aniTerminalActive);
if (game.use_native_sp_graphics_engine)
- GfxFrame[lx][ly] += getGraphicInfo_Delay(graphic);
+ GfxFrameSP[lx][ly] += getGraphicInfo_Delay(graphic);
GfxGraphic[lx][ly] = (bl < 8 ? aniTerminal : aniTerminalActive);
{
int element = LowByte(PlayField16[GetSI(x, y)]);
int graphic = GfxGraphic[x][y];
- int sync_frame = GfxFrame[x][y];
+ int sync_frame = GfxFrameSP[x][y];
boolean redraw = force_redraw;
if (graphic < 0)
GfxElementLast[x][y] = element;
GfxGraphicLast[x][y] = GfxGraphic[x][y];
- sync_frame = GfxFrame[x][y] = 0;
+ sync_frame = GfxFrameSP[x][y] = 0;
}
else if (isNextAnimationFrame_SP(graphic, sync_frame)) // new frame
{
SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(GfxElementLast));
SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(GfxGraphicLast));
SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(GfxGraphic));
- SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(GfxFrame));
+ SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(GfxFrameSP));
SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(ScrollMinX));
SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(ScrollMinY));
int GfxElementLast[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
int GfxGraphicLast[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
int GfxGraphic[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
-int GfxFrame[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
+int GfxFrameSP[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
void InitGameEngine_SP(void)
GfxElementLast[x][y] = -1;
GfxGraphicLast[x][y] = -1;
GfxGraphic[x][y] = -1;
- GfxFrame[x][y] = 0;
+ GfxFrameSP[x][y] = 0;
}
}
for (x = DisplayMinX; x <= DisplayMaxX; x++)
for (y = DisplayMinY; y <= DisplayMaxY; y++)
- GfxFrame[x][y]++;
+ GfxFrameSP[x][y]++;
}
int getRedDiskReleaseFlag_SP(void)
extern int GfxElementLast[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
extern int GfxGraphicLast[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
extern int GfxGraphic[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
-extern int GfxFrame[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
+extern int GfxFrameSP[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT];
// ----------------------------------------------------------------------------