From 095ede84fb684564ca515b3937f714422097310b Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Tue, 31 May 2016 10:03:58 +1000 Subject: [PATCH] - Don't put staircases on top of water. --- map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/map.c b/map.c index 6cae146..93cad6b 100644 --- a/map.c +++ b/map.c @@ -1480,11 +1480,11 @@ int cellmeetscondition(cell_t *c, enum CELLCONDITION cond, int arg, int value) { vok = 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; } } 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; } }