[jnh-cvs 451] CVS update: jnethack/src

Back to archive index

Kentaro Shirakata argra****@users*****
2005年 6月 5日 (日) 06:46:22 JST


Index: jnethack/src/eat.c
diff -u jnethack/src/eat.c:1.37 jnethack/src/eat.c:1.38
--- jnethack/src/eat.c:1.37	Sun May  1 20:27:04 2005
+++ jnethack/src/eat.c	Sun Jun  5 06:46:21 2005
@@ -2521,9 +2521,8 @@
 		    losehp(rnd(15), xname(otmp), KILLED_BY_AN);
 #else
 		    {
-		      char jbuf[BUFSIZ];
-		      Strcpy(jbuf, xname(otmp));
-		      Strcat(jbuf, "で");
+		      char jbuf[BUFSZ];
+		      Sprintf(jbuf, "%sで", xname(otmp));
 		      losehp(rnd(15), jbuf, KILLED_BY_AN);
 		    }
 #endif
Index: jnethack/src/mon.c
diff -u jnethack/src/mon.c:1.26 jnethack/src/mon.c:1.27
--- jnethack/src/mon.c:1.26	Thu Jul 29 01:07:23 2004
+++ jnethack/src/mon.c	Sun Jun  5 06:46:21 2005
@@ -2315,16 +2315,16 @@
 */
   		    You("%s!", poiseff[typ]);
 	} else {
-#if 1 /*JP*/
-		char ptmp[BUFSZ];
-#endif
 		i = thrown_weapon ? rnd(6) : rn1(10,6);
 		if(Half_physical_damage) i = (i+1) / 2;
 #if 0 /*JP*/
 		losehp(i, pname, kprefix);
 #else
-		Sprintf(ptmp, "%sの攻撃で", pname);
-		losehp(i, ptmp, kprefix);
+		{
+		    char jbuf[BUFSZ];
+		    Sprintf(jbuf, "%sの攻撃で", pname);
+		    losehp(i, jbuf, kprefix);
+		}
 #endif
 	}
 	if(u.uhp < 1) {


Jnethack-cvs メーリングリストの案内
Back to archive index