OSDN Git Service

Fix a bug in monster info.
[hengband/hengband.git] / src / z-form.c
index 1030143..adae73f 100644 (file)
@@ -1,5 +1,13 @@
 /* File: z-form.c */
 
+/*
+ * Copyright (c) 1997 Ben Harrison
+ *
+ * This software may be copied and distributed for educational, research,
+ * and not for profit purposes provided that this copyright and statement
+ * are included in all such copies.
+ */
+
 /* Purpose: Low level text formatting -BEN- */
 
 #include "z-form.h"
@@ -605,7 +613,7 @@ uint vstrnfmt(char *buf, uint max, cptr fmt, va_list vp)
 
 
 #ifdef JP
-                  for (q = 0; tmp[q]; q++) if ( iskanji(tmp[q]) ) { do_xtra=FALSE;break;} 
+               for (q = 0; tmp[q]; q++) if (iskanji(tmp[q])) { do_xtra=FALSE;break;} 
 #endif
                /* Mega-Hack -- handle "capitilization" */
                if (do_xtra)
@@ -617,11 +625,8 @@ uint vstrnfmt(char *buf, uint max, cptr fmt, va_list vp)
                                if (!isspace(tmp[q]))
                                {
                                        /* Capitalize if possible */
-#ifdef JP
-                                       if (!iskanji(tmp[q]))
-#endif
-                                               if (islower(tmp[q]))
-                                                       tmp[q] = toupper(tmp[q]);
+                                       if (islower(tmp[q]))
+                                               tmp[q] = toupper(tmp[q]);
 
                                        /* Done */
                                        break;