add format string arg to Sprintf in hack.c
This commit is contained in:
+2
-1
@@ -1727,7 +1727,8 @@ 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",
|
||||||
|
(Is_waterlevel(&u.uz) && levl[x][y].typ == AIR)
|
||||||
? "an air bubble"
|
? "an air bubble"
|
||||||
: "nothing");
|
: "nothing");
|
||||||
} else if (solid) {
|
} else if (solid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user