diff --git a/src/display.c b/src/display.c index 1369fbfb3..399bb1842 100644 --- a/src/display.c +++ b/src/display.c @@ -900,6 +900,7 @@ tmp_at(x, y) break; default: /* do it */ + if (!isok(x,y)) break; if (tglyph->style == DISP_BEAM || tglyph->style == DISP_ALL) { if (tglyph->style != DISP_ALL && !cansee(x,y)) break; if (tglyph->sidx >= TMP_AT_MAX_GLYPHS) break; /* too many locations */ diff --git a/src/mthrowu.c b/src/mthrowu.c index e61814321..1ff6cddc3 100644 --- a/src/mthrowu.c +++ b/src/mthrowu.c @@ -440,7 +440,7 @@ struct obj *obj; /* missile (or stack providing it) */ tmp_at(bhitpos.x, bhitpos.y); delay_output(); } - tmp_at(bhitpos.x, bhitpos.y); + if (isok(bhitpos.x, bhitpos.y)) tmp_at(bhitpos.x, bhitpos.y); delay_output(); tmp_at(DISP_END, 0);