mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-08 02:04:06 +00:00
rogueviz::ads:: fix to Gate Jungle
This commit is contained in:
parent
158141e568
commit
e3440b323a
@ -90,12 +90,16 @@ void gen_terrain(cell *c, cellinfo& ci, int level = 0) {
|
||||
if(ci_at[c2].type < wtSolid)
|
||||
ci_at[c2].type = wtSolid;
|
||||
}
|
||||
r = hrand(100);
|
||||
if(r < gate_frequency(c))
|
||||
ci_at[c].type = wtGate;
|
||||
}
|
||||
ci.mpd_terrain = level;
|
||||
|
||||
auto gf = gate_frequency(c);
|
||||
if(gf) {
|
||||
int r = hrand(100);
|
||||
if(r < gf)
|
||||
ci_at[c].type = wtGate;
|
||||
}
|
||||
|
||||
if(c->land == laBarrier)
|
||||
ci_at[c].type = wtBarrier;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user