Unify blind feel_location or newsym info single func

This commit is contained in:
Pasi Kallinen
2015-11-09 21:37:28 +02:00
parent 7132f56901
commit 2c0f24896f
8 changed files with 29 additions and 44 deletions

View File

@@ -81,10 +81,7 @@ boolean waslit, rockit;
lev->typ = (rockit ? STONE : ROOM);
if (dist >= 3)
impossible("mkcavepos called with dist %d", dist);
if (Blind)
feel_location(x, y);
else
newsym(x, y);
feel_newsym(x, y);
}
STATIC_OVL void
@@ -437,10 +434,7 @@ dig(VOID_ARGS)
if (!does_block(dpx, dpy, &levl[dpx][dpy]))
unblock_point(dpx, dpy); /* vision: can see through */
if (Blind)
feel_location(dpx, dpy);
else
newsym(dpx, dpy);
feel_newsym(dpx, dpy);
if (digtxt && !context.digging.quiet)
pline1(digtxt); /* after newsym */
if (dmgtxt)