X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2Finit.c;h=d8e4597dd06a20079cbee3b1749a519e98cbf1aa;hb=475d747d7f6122bf9b62ccf1518fc7e8fc0f201c;hp=a1312caccfcf98bd1bf5d462c90195ee0838495e;hpb=4591885cdbcfec145d1ac0510fed1519af1eea1d;p=rocksndiamonds.git diff --git a/src/game_sp/init.c b/src/game_sp/init.c index a1312cac..d8e4597d 100644 --- a/src/game_sp/init.c +++ b/src/game_sp/init.c @@ -3,31 +3,24 @@ #include "global.h" -Bitmap *screenBitmap; +Bitmap *bitmap_db_field_sp; struct EngineSnapshotInfo_SP engine_snapshot_sp; -static void init_global_values() -{ - menBorder = False; -} - void sp_open_all() { - init_global_values(); - Form_Load(); - - screenBitmap = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY, - DEFAULT_DEPTH); - - DDSpriteBuffer_Init(); } void sp_close_all() { } +void InitGfxBuffers_SP() +{ + ReCreateBitmap(&bitmap_db_field_sp, FXSIZE, FYSIZE, DEFAULT_DEPTH); +} + unsigned int InitEngineRandom_SP(long seed) { if (seed == NEW_RANDOMIZE) @@ -93,8 +86,6 @@ void SaveEngineSnapshotValues_SP() SaveEngineSnapshotBuffer(ARGS_ADDRESS_AND_SIZEOF(DisplayMinY)); SaveEngineSnapshotBuffer(ARGS_ADDRESS_AND_SIZEOF(DisplayMaxX)); SaveEngineSnapshotBuffer(ARGS_ADDRESS_AND_SIZEOF(DisplayMaxY)); - SaveEngineSnapshotBuffer(ARGS_ADDRESS_AND_SIZEOF(DisplayWidth)); - SaveEngineSnapshotBuffer(ARGS_ADDRESS_AND_SIZEOF(DisplayHeight)); SaveEngineSnapshotBuffer(ARGS_ADDRESS_AND_SIZEOF(InfotronsNeeded)); SaveEngineSnapshotBuffer(ARGS_ADDRESS_AND_SIZEOF(KillMurphyFlag));