mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
activateSafety needs to set safetyseed to something
This commit is contained in:
parent
e0199c1d81
commit
a1b7226837
4
game.cpp
4
game.cpp
@ -156,7 +156,7 @@ ld hrandf() {
|
||||
|
||||
int hrandstate() {
|
||||
mt19937 r2 = r;
|
||||
return r2() % 1000000;
|
||||
return r2() & HRANDMAX;
|
||||
}
|
||||
|
||||
void initcell(cell *c) {
|
||||
@ -6017,7 +6017,7 @@ void activateSafety(eLand l) {
|
||||
l = laCrossroads;
|
||||
firstland = l;
|
||||
safetyland = l;
|
||||
safetyseed = 0;
|
||||
safetyseed = hrandpos();
|
||||
clear_euland(firstland);
|
||||
safety = true; avengers = 0;
|
||||
clearMemory();
|
||||
|
Loading…
Reference in New Issue
Block a user