1
0
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:
Zeno Rogue 2018-01-14 13:14:14 +01:00
parent e0199c1d81
commit a1b7226837

View File

@ -156,7 +156,7 @@ ld hrandf() {
int hrandstate() { int hrandstate() {
mt19937 r2 = r; mt19937 r2 = r;
return r2() % 1000000; return r2() & HRANDMAX;
} }
void initcell(cell *c) { void initcell(cell *c) {
@ -6017,7 +6017,7 @@ void activateSafety(eLand l) {
l = laCrossroads; l = laCrossroads;
firstland = l; firstland = l;
safetyland = l; safetyland = l;
safetyseed = 0; safetyseed = hrandpos();
clear_euland(firstland); clear_euland(firstland);
safety = true; avengers = 0; safety = true; avengers = 0;
clearMemory(); clearMemory();