- Don't put staircases on top of water.
This commit is contained in:
parent
e91fc82f99
commit
095ede84fb
4
map.c
4
map.c
|
@ -1480,11 +1480,11 @@ int cellmeetscondition(cell_t *c, enum CELLCONDITION cond, int arg, int value) {
|
||||||
vok = B_TRUE;
|
vok = B_TRUE;
|
||||||
}
|
}
|
||||||
if (value == B_TRUE) {
|
if (value == B_TRUE) {
|
||||||
if (vok && cellwalkable(NULL, c, NULL) && !hasenterableobject(c) && !hasobwithflag(c->obpile, F_DOOR) ) {
|
if (vok && cellwalkable(NULL, c, NULL) && !hasenterableobject(c) && !hasobwithflag(c->obpile, F_DOOR) && !hasobwithflag(c->obpile, F_DEEPWATER) ) {
|
||||||
ok = B_TRUE;
|
ok = B_TRUE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!vok || !cellwalkable(NULL, c, NULL) || hasenterableobject(c) || hasobwithflag(c->obpile, F_DOOR)) {
|
if (!vok || !cellwalkable(NULL, c, NULL) || hasenterableobject(c) || hasobwithflag(c->obpile, F_DOOR) || hasobwithflag(c->obpile, F_DEEPWATER)) {
|
||||||
ok = B_TRUE;
|
ok = B_TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue