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; } }