1
0
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:
Zeno Rogue 2025-02-10 09:44:08 +01:00
parent 158141e568
commit e3440b323a

View File

@ -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;
}