mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 15:40:26 +00:00
rulegen:: w_near_solid
This commit is contained in:
parent
74bf728b84
commit
3e269fe053
@ -59,7 +59,7 @@ EX int states_premini = 0;
|
|||||||
#if HDR
|
#if HDR
|
||||||
/** change some flags -- they usually make it worse */
|
/** change some flags -- they usually make it worse */
|
||||||
static const flagtype w_numerical = Flag(1); /*< build trees numerically */
|
static const flagtype w_numerical = Flag(1); /*< build trees numerically */
|
||||||
static const flagtype w_single_shortcut = Flag(2); /*< generate just one shortcut */
|
static const flagtype w_near_solid = Flag(2); /*< solid's pre-parent is also solid */
|
||||||
static const flagtype w_no_shortcut = Flag(3); /*< generate no shortcuts */
|
static const flagtype w_no_shortcut = Flag(3); /*< generate no shortcuts */
|
||||||
static const flagtype w_no_restart = Flag(4); /*< do not restart at powers of two */
|
static const flagtype w_no_restart = Flag(4); /*< do not restart at powers of two */
|
||||||
static const flagtype w_no_sidecache = Flag(5); /*< do not cache get_side */
|
static const flagtype w_no_sidecache = Flag(5); /*< do not cache get_side */
|
||||||
@ -568,6 +568,8 @@ void be_solid(tcell *c) {
|
|||||||
throw rulegen_failure("set solid but no dist");
|
throw rulegen_failure("set solid but no dist");
|
||||||
}
|
}
|
||||||
c->is_solid = true;
|
c->is_solid = true;
|
||||||
|
if(c->dist > 0 && !(flags & w_near_solid))
|
||||||
|
be_solid(c->move(c->any_nearer));
|
||||||
}
|
}
|
||||||
|
|
||||||
EX void look_for_shortcuts(tcell *c, shortcut& sh) {
|
EX void look_for_shortcuts(tcell *c, shortcut& sh) {
|
||||||
|
Loading…
Reference in New Issue
Block a user