Commit MetaInfo

Revision458c5c31e40580a5b68e7417c12edbd97983a24c (tree)
Time2019-12-08 04:15:04
AuthorSHIRAKATA Kentaro <argrath@ub32...>
CommiterSHIRAKATA Kentaro

Log Message

fix #39767

Change Summary

Incremental Difference

--- a/ChangeLog.j
+++ b/ChangeLog.j
@@ -1,3 +1,7 @@
1+ * 次の問題を修正
2+ * 銀が苦手な怪物を銀の武器で攻撃したときのメッセージがおかしい
3+ (#39767)
4+
15 Sun Jun 2 2019 Kentaro Shirakata <argrath@ub32.org>
26
37 * JNetHack-3.6.1-0.4リリース
--- a/src/uhitm.c
+++ b/src/uhitm.c
@@ -1456,14 +1456,15 @@ int dieroll;
14561456 Sprintf(silverobjbuf, "Your %s%s %s",
14571457 strstri(saved_oname, "silver") ? "" : "silver ",
14581458 saved_oname, vtense(saved_oname, "sear"));
1459+ (void) strNsubst(silverobjbuf, "%", "%%", 0);
1460+ Strcat(silverobjbuf, " %s!");
14591461 #else
14601462 Sprintf(silverobjbuf, "%%sは%s%sで焼かれた!",
14611463 strstri(saved_oname, "銀") ?
14621464 "" : "銀の",
14631465 saved_oname);
1466+ (void) strNsubst(silverobjbuf, "%%", "%", 0);
14641467 #endif
1465- (void) strNsubst(silverobjbuf, "%", "%%", 0);
1466- Strcat(silverobjbuf, " %s!");
14671468 fmt = silverobjbuf;
14681469 } else
14691470 /*JP
Show on old repository browser