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 736211c8642a97759295c406ba800bd8765bb5b7..953b9ec8256a570d6643cd6d956a45870c7bba2c 100644
(file)
--- a/
src/game_sp/init.c
+++ b/
src/game_sp/init.c
@@
-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;
+}