X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2Finit.c;h=953b9ec8256a570d6643cd6d956a45870c7bba2c;hb=83a31e12a79ab21deddbbb7533998a1a54a989dd;hp=1324d8e35f4fe57a7b00cadd26888f33c5a8390e;hpb=1533b136c6f8d0656cc45ca4c204104ef3d75249;p=rocksndiamonds.git diff --git a/src/game_sp/init.c b/src/game_sp/init.c index 1324d8e3..953b9ec8 100644 --- a/src/game_sp/init.c +++ b/src/game_sp/init.c @@ -35,8 +35,8 @@ static void init_global_values() menPanel.Checked = True; menAutoScroll.Checked = True; - MainForm.picPane.Width = picPane.Width = 1935; - MainForm.picPane.Height = picPane.Height = 1635; + MainForm.picPane.Width = picPane.Width = SCR_FIELDX * TILEX; + MainForm.picPane.Height = picPane.Height = SCR_FIELDY * TILEY; } void sp_open_all() @@ -62,3 +62,17 @@ void sp_open_all() void sp_close_all() { } + +unsigned int InitEngineRandom_SP(long seed) +{ + if (seed == NEW_RANDOMIZE) + { + subRandomize(); + + seed = (long)RandomSeed; + } + + RandomSeed = (short)seed; + + return (unsigned int) seed; +}