projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20091023-1-src
[rocksndiamonds.git]
/
src
/
game_sp
/
init.c
diff --git
a/src/game_sp/init.c
b/src/game_sp/init.c
index 1324d8e35f4fe57a7b00cadd26888f33c5a8390e..953b9ec8256a570d6643cd6d956a45870c7bba2c 100644
(file)
--- 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;
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()
}
void sp_open_all()
@@
-62,3
+62,17
@@
void sp_open_all()
void sp_close_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;
+}