barrier:: fixed getNewLand to know the old land with new barriers

This commit is contained in:
Zeno Rogue
2021-07-31 15:14:31 +02:00
parent 8d913f525d
commit 70702a8cd9
+1 -1
View File
@@ -1510,7 +1510,7 @@ EX bool nice_walls_available() {
EX void build_barrier_good(cell *c, eLand l IS(laNone)) {
if(!old_nice_walls()) {
buildBarrierX(NOWALLSEP_WALL, c, l ? l : getNewLand(l), NODIR);
buildBarrierX(NOWALLSEP_WALL, c, l ? l : getNewLand(c->land), NODIR);
}
else {