OSDN Git Service

[Refactor] #39963 Removed unused braces
authorHourier <hourier@users.sourceforge.jp>
Sun, 3 May 2020 10:49:57 +0000 (19:49 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sun, 3 May 2020 10:49:57 +0000 (19:49 +0900)
src/autopick/autopick-finder.c

index 58fdfb5..834f136 100644 (file)
 #include "gameterm.h"
 #include "player-inventory.h"
 
-/*
- * @brief \97^\82¦\82ç\82ê\82½\83A\83C\83e\83\80\82ª\8e©\93®\8fE\82¢\82Ì\83\8a\83X\83g\82É\93o\98^\82³\82ê\82Ä\82¢\82é\82©\82Ç\82¤\82©\82ð\8c\9f\8dõ\82·\82é
- * @param player_ptr \83v\83\8c\81[\83\84\81[\82Ö\82Ì\8eQ\8fÆ\83|\83C\83\93\83^
- * @o_ptr \83A\83C\83e\83\80\82Ö\82Ì\8eQ\8fÆ\83|\83C\83\93\83^
- * @return \8e©\93®\8fE\82¢\82Ì\83\8a\83X\83g\82É\93o\98^\82³\82ê\82Ä\82¢\82½\82ç\82»\82Ì\93o\98^\94Ô\8d\86\81A\82È\82©\82Á\82½\82ç-1
- * @details
- * A function for Auto-picker/destroyer
- * Examine whether the object matches to the list of keywords or not.
- */
+ /*
 * @brief \97^\82¦\82ç\82ê\82½\83A\83C\83e\83\80\82ª\8e©\93®\8fE\82¢\82Ì\83\8a\83X\83g\82É\93o\98^\82³\82ê\82Ä\82¢\82é\82©\82Ç\82¤\82©\82ð\8c\9f\8dõ\82·\82é
 * @param player_ptr \83v\83\8c\81[\83\84\81[\82Ö\82Ì\8eQ\8fÆ\83|\83C\83\93\83^
 * @o_ptr \83A\83C\83e\83\80\82Ö\82Ì\8eQ\8fÆ\83|\83C\83\93\83^
 * @return \8e©\93®\8fE\82¢\82Ì\83\8a\83X\83g\82É\93o\98^\82³\82ê\82Ä\82¢\82½\82ç\82»\82Ì\93o\98^\94Ô\8d\86\81A\82È\82©\82Á\82½\82ç-1
 * @details
 * A function for Auto-picker/destroyer
 * Examine whether the object matches to the list of keywords or not.
 */
 int find_autopick_list(player_type *player_ptr, object_type *o_ptr)
 {
        GAME_TEXT o_name[MAX_NLEN];
@@ -247,19 +247,17 @@ byte get_string_for_search(player_type *player_ptr, object_type **o_handle, conc
                        }
                        else
 #endif
-                       {
 #ifdef JP
-                               if (pos < len && (isprint(c) || iskana(c)))
+                       if (pos < len && (isprint(c) || iskana(c)))
 #else
-                               if (pos < len && isprint(c))
+                       if (pos < len && isprint(c))
 #endif
-                               {
-                                       buf[pos++] = c;
-                               }
-                               else
-                               {
-                                       bell();
-                               }
+                       {
+                               buf[pos++] = c;
+                       }
+                       else
+                       {
+                               bell();
                        }
 
                        buf[pos] = '\0';