mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-21 08:00:25 +00:00
altmap:: protect from crashing barriers
This commit is contained in:
parent
8498e0ce14
commit
923420fd0d
@ -261,6 +261,8 @@ EX heptagon *create_altmap(cell *c, int rad, hstate firststate, int special IS(0
|
||||
|
||||
cellwalker bf(c, gdir); bf += rev;
|
||||
auto p = generate_random_path(bf, rad, false, false);
|
||||
|
||||
for(auto c: p.path) if(c->bardir != NODIR) return nullptr;
|
||||
|
||||
heptagon *h = p.last.at->master;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user