Unify blind feel_location or newsym info single func
This commit is contained in:
10
src/lock.c
10
src/lock.c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user