1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-10 20:27:39 +00:00

options -W3 and -top

This commit is contained in:
Zeno Rogue
2018-03-30 00:20:33 +02:00
parent 21a7c8fca9
commit eafd5a1eab
5 changed files with 26 additions and 4 deletions

View File

@@ -607,13 +607,12 @@ bool buildBarrier4(cell *c, int d, int mode, eLand ll, eLand lr) {
return true;
}
void buildBarrierStrong(cell *c, int d, bool oldleft) {
void buildBarrierStrong(cell *c, int d, bool oldleft, eLand newland) {
d %= 7;
cellwalker bb(c, d);
c->bardir = d;
eLand oldland = c->land;
eLand newland = getNewLand(oldland);
landcount[newland]++;
if(oldleft) c->barleft = oldland, c->barright = newland;
@@ -621,6 +620,10 @@ void buildBarrierStrong(cell *c, int d, bool oldleft) {
extendcheck(bb.c);
}
void buildBarrierStrong(cell *c, int d, bool oldleft) {
buildBarrierStrong(c, d, oldleft, getNewLand(c->land));
}
void buildCrossroads2(cell *c) {
if(buggyGeneration) return;