Skip to content

Commit 68ce14b

Browse files
authored
Merge pull request #483 from josephcsible/crystalchasm
Rework removed tiles in Crystal World
2 parents 81b12c7 + 3ac6126 commit 68ce14b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

help.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ EX void describeMouseover() {
10301030
}
10311031
#endif
10321032

1033-
if(c->wall && !(c->wall == waChasm && c->land == laDual && ctof(c)) &&
1033+
if(c->wall && !(c->land == laDual && pseudohept(c)) &&
10341034
!(c->land == laMemory) &&
10351035
!((c->wall == waFloorA || c->wall == waFloorB) && c->item)) {
10361036

passable.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ EX bool anti_alchemy(cell *w, cell *from) {
143143
EX bool passable(cell *w, cell *from, flagtype flags) {
144144
bool vrevdir = bool(flags&P_VOID);
145145

146+
if(w->land == laDual && pseudohept(w) && !F(P_BULLET)) return false;
147+
146148
if(from && from != w && nonAdjacent(from, w) && !F(P_IGNORE37 | P_BULLET)) return false;
147149

148150
if((isWateryOrBoat(w) || w->wall == waShallow) && F(P_WATERCURSE))
@@ -169,7 +171,6 @@ EX bool passable(cell *w, cell *from, flagtype flags) {
169171
if(airdist(w) < 3) return false;
170172
if(againstWind(w,from)) return false;
171173
if(isGravityLand(w)) return false;
172-
if(w->wall == waChasm && w->land == laDual) return false;
173174
}
174175

175176
if(from && strictlyAgainstGravity(w, from, vrevdir, flags)

pcmove.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ void pcmove::tell_why_impassable() {
11361136
if(vmsg(miRESTRICTED, siGRAVITY, c2, moNone))
11371137
addMessage(XLAT("Gravity does not allow this!"));
11381138
}
1139-
else if(c2->wall == waChasm && c2->land == laDual) {
1139+
else if(c2->land == laDual && pseudohept(c2)) {
11401140
if(vmsg(miRESTRICTED, siWALL, c2, moNone))
11411141
addMessage(XLAT("You cannot move there!"));
11421142
}

0 commit comments

Comments
 (0)