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

@@ -648,10 +648,7 @@ int x, y;
add_damage(cc.x, cc.y, 0L);
} else
door->doormask = D_ISOPEN;
if (Blind)
feel_location(cc.x, cc.y); /* the hero knows she opened it */
else
newsym(cc.x, cc.y);
feel_newsym(cc.x, cc.y); /* the hero knows she opened it */
unblock_point(cc.x, cc.y); /* vision: new see through there */
} else {
exercise(A_STR, TRUE);
@@ -781,10 +778,7 @@ doclose()
|| rn2(25) < (ACURRSTR + ACURR(A_DEX) + ACURR(A_CON)) / 3) {
pline_The("door closes.");
door->doormask = D_CLOSED;
if (Blind)
feel_location(x, y); /* the hero knows she closed it */
else
newsym(x, y);
feel_newsym(x, y); /* the hero knows she closed it */
block_point(x, y); /* vision: no longer see there */
} else {
exercise(A_STR, TRUE);