1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-14 05:57:37 +00:00

product:: using in_h2xe() and in_s2xe() more consistently

This commit is contained in:
Zeno Rogue
2019-11-28 23:09:38 +01:00
parent d63b14da5c
commit 5add972bdd
5 changed files with 10 additions and 9 deletions

View File

@@ -296,7 +296,7 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
c->wall = waPalace;
}
if(d == 8 && (sphere || (hybri && hybrid::over_sphere()))) {
if(d == 8 && (sphere || in_s2xe())) {
int gs = getHemisphere(c,0);
if(NONSTDVAR) {
int v = 1;
@@ -2715,7 +2715,7 @@ EX void setdist(cell *c, int d, cell *from) {
buildEquidistant(c);
}
if(d <= 7 && (c->land == laGraveyard || c->land == laHauntedBorder) && !(hybri && hybrid::over_sphere())) {
if(d <= 7 && (c->land == laGraveyard || c->land == laHauntedBorder) && !in_s2xe()) {
c->land = (c->landparam >= 1 && c->landparam <= HAUNTED_RADIUS) ? laHauntedBorder : laGraveyard;
}