mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
rogueviz:: fixed the use of rand to hrand
This commit is contained in:
parent
11d9d3de5a
commit
e5fe57fdbf
@ -615,7 +615,7 @@ namespace sag {
|
||||
|
||||
int it = s<2 ? (s+1) : s-2;
|
||||
for(int ii=0; ii<it; ii++) {
|
||||
int d = rand() % c->type;
|
||||
int d = hrand(c->type);
|
||||
c = c->mov[d];
|
||||
if(!c) goto aiter;
|
||||
if(c->wparam != INSNAKE) goto aiter;
|
||||
|
Loading…
Reference in New Issue
Block a user