9d945a3894f616daefb879a49868555fffbd44c4
[rocksndiamonds.git] / src / game_mm / mm_init.c
1 // ============================================================================
2 // Mirror Magic -- McDuffin's Revenge
3 // ----------------------------------------------------------------------------
4 // (c) 1994-2017 by Artsoft Entertainment
5 //                  Holger Schemel
6 //                  info@artsoft.org
7 //                  http://www.artsoft.org/
8 // ----------------------------------------------------------------------------
9 // mm_init.c
10 // ============================================================================
11
12 #include "main_mm.h"
13
14
15 struct EngineSnapshotInfo_MM engine_snapshot_mm;
16
17
18 unsigned int InitEngineRandom_MM(int seed)
19 {
20   return InitEngineRandom(seed);
21 }
22
23
24 /* ------------------------------------------------------------------------- */
25 /* Mirror Magic game engine snapshot handling functions                      */
26 /* ------------------------------------------------------------------------- */
27
28 void SaveEngineSnapshotValues_MM(ListNode **buffers)
29 {
30   engine_snapshot_mm.game_mm = game_mm;
31 }
32
33 void LoadEngineSnapshotValues_MM()
34 {
35   /* stored engine snapshot buffers already restored at this point */
36
37   game_mm = engine_snapshot_mm.game_mm;
38
39   RedrawPlayfield_MM(TRUE);
40 }