X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_mm%2Fmm_init.c;h=9d945a3894f616daefb879a49868555fffbd44c4;hb=d9ea00b22977a971eaf8ee580b4f8804dd2f6fc1;hp=eec9ee1e31135b98fe9156b2f555ea7d27e09062;hpb=8cef7dc31f5b96c492079d59acab2cb1587b3c8c;p=rocksndiamonds.git diff --git a/src/game_mm/mm_init.c b/src/game_mm/mm_init.c index eec9ee1e..9d945a38 100644 --- a/src/game_mm/mm_init.c +++ b/src/game_mm/mm_init.c @@ -11,7 +11,30 @@ #include "main_mm.h" + +struct EngineSnapshotInfo_MM engine_snapshot_mm; + + unsigned int InitEngineRandom_MM(int seed) { return InitEngineRandom(seed); } + + +/* ------------------------------------------------------------------------- */ +/* Mirror Magic game engine snapshot handling functions */ +/* ------------------------------------------------------------------------- */ + +void SaveEngineSnapshotValues_MM(ListNode **buffers) +{ + engine_snapshot_mm.game_mm = game_mm; +} + +void LoadEngineSnapshotValues_MM() +{ + /* stored engine snapshot buffers already restored at this point */ + + game_mm = engine_snapshot_mm.game_mm; + + RedrawPlayfield_MM(TRUE); +}