Fold invisible glyph unmapping into single function
This commit is contained in:
10
src/dokick.c
10
src/dokick.c
@@ -262,10 +262,7 @@ doit:
|
||||
} else {
|
||||
maybe_mnexto(mon);
|
||||
if (mon->mx != x || mon->my != y) {
|
||||
if (glyph_is_invisible(levl[x][y].glyph)) {
|
||||
unmap_object(x, y);
|
||||
newsym(x, y);
|
||||
}
|
||||
(void) unmap_invisible(x, y);
|
||||
pline("%s %s, %s evading your %skick.", Monnam(mon),
|
||||
(!level.flags.noteleport && can_teleport(mon->data))
|
||||
? "teleports"
|
||||
@@ -946,10 +943,7 @@ dokick()
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
if (glyph_is_invisible(levl[x][y].glyph)) {
|
||||
unmap_object(x, y);
|
||||
newsym(x, y);
|
||||
}
|
||||
(void) unmap_invisible(x, y);
|
||||
if (is_pool(x, y) ^ !!u.uinwater) {
|
||||
/* objects normally can't be removed from water by kicking */
|
||||
You("splash some %s around.", hliquid("water"));
|
||||
|
||||
Reference in New Issue
Block a user