add format string arg to Sprintf in hack.c
This commit is contained in:
@@ -1727,9 +1727,10 @@ domove_core(void)
|
|||||||
because you don't see remembered terrain while underwater;
|
because you don't see remembered terrain while underwater;
|
||||||
although the hero can attack an adjacent monster this way,
|
although the hero can attack an adjacent monster this way,
|
||||||
assume he can't reach out far enough to distinguish terrain */
|
assume he can't reach out far enough to distinguish terrain */
|
||||||
Sprintf(buf, (Is_waterlevel(&u.uz) && levl[x][y].typ == AIR)
|
Sprintf(buf, "%s",
|
||||||
? "an air bubble"
|
(Is_waterlevel(&u.uz) && levl[x][y].typ == AIR)
|
||||||
: "nothing");
|
? "an air bubble"
|
||||||
|
: "nothing");
|
||||||
} else if (solid) {
|
} else if (solid) {
|
||||||
/* glyph might indicate unseen terrain if hero is blind;
|
/* glyph might indicate unseen terrain if hero is blind;
|
||||||
unlike searching, this won't reveal what that terrain is
|
unlike searching, this won't reveal what that terrain is
|
||||||
|
|||||||
Reference in New Issue
Block a user