game_sp.preceding_buffer = preceding_playfield_memory;
game_sp.preceding_buffer_size = preceding_buffer_size;
}
game_sp.preceding_buffer = preceding_playfield_memory;
game_sp.preceding_buffer_size = preceding_buffer_size;
}
-/* ------------------------------------------------------------------------- */
-/* Supaplex game engine snapshot handling functions */
-/* ------------------------------------------------------------------------- */
+// ----------------------------------------------------------------------------
+// Supaplex game engine snapshot handling functions
+// ----------------------------------------------------------------------------
for (i = 0; i < FieldWidth * FieldHeight + HeaderSize; i++)
engine_snapshot_sp.PlayField16[i] = PlayField16[i];
for (i = 0; i < FieldWidth * FieldHeight + HeaderSize; i++)
engine_snapshot_sp.PlayField16[i] = PlayField16[i];
for (i = 0; i < FieldWidth * FieldHeight + HeaderSize; i++)
engine_snapshot_sp.TerminalState[i] = TerminalState[i];
for (i = 0; i < FieldWidth * FieldHeight + HeaderSize; i++)
engine_snapshot_sp.TerminalState[i] = TerminalState[i];
SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(FieldWidth));
SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(FieldHeight));
SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(FieldWidth));
SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(FieldHeight));
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(GfxElementLast));
SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(GfxGraphicLast));
SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(GfxGraphic));
SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(ScrollMinX));
SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(ScrollMinY));
SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(ScrollMinX));
SaveSnapshotBuffer(buffers, ARGS_ADDRESS_AND_SIZEOF(ScrollMinY));
for (i = 0; i < FieldWidth * FieldHeight + HeaderSize; i++)
PlayField16[i] = engine_snapshot_sp.PlayField16[i];
for (i = 0; i < FieldWidth * FieldHeight + HeaderSize; i++)
PlayField16[i] = engine_snapshot_sp.PlayField16[i];