From: Hourier Date: Sun, 3 May 2020 10:49:57 +0000 (+0900) Subject: [Refactor] #39963 Removed unused braces X-Git-Tag: vmacos3.0.0-alpha52~1381^2~1 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=fdec2468bc1fa84e9d0d801ba036d8f99c14e5ae;p=hengbandforosx%2Fhengbandosx.git [Refactor] #39963 Removed unused braces --- diff --git a/src/autopick/autopick-finder.c b/src/autopick/autopick-finder.c index 58fdfb547..834f1367c 100644 --- a/src/autopick/autopick-finder.c +++ b/src/autopick/autopick-finder.c @@ -14,15 +14,15 @@ #include "gameterm.h" #include "player-inventory.h" -/* - * @brief —^‚¦‚ç‚ꂽƒAƒCƒeƒ€‚ªŽ©“®E‚¢‚̃ŠƒXƒg‚É“o˜^‚³‚ê‚Ä‚¢‚é‚©‚Ç‚¤‚©‚ðŒŸõ‚·‚é - * @param player_ptr ƒvƒŒ[ƒ„[‚Ö‚ÌŽQÆƒ|ƒCƒ“ƒ^ - * @o_ptr ƒAƒCƒeƒ€‚Ö‚ÌŽQÆƒ|ƒCƒ“ƒ^ - * @return Ž©“®E‚¢‚̃ŠƒXƒg‚É“o˜^‚³‚ê‚Ä‚¢‚½‚ç‚»‚Ì“o˜^”ԍ†A‚È‚©‚Á‚½‚ç-1 - * @details - * A function for Auto-picker/destroyer - * Examine whether the object matches to the list of keywords or not. - */ + /* + * @brief —^‚¦‚ç‚ꂽƒAƒCƒeƒ€‚ªŽ©“®E‚¢‚̃ŠƒXƒg‚É“o˜^‚³‚ê‚Ä‚¢‚é‚©‚Ç‚¤‚©‚ðŒŸõ‚·‚é + * @param player_ptr ƒvƒŒ[ƒ„[‚Ö‚ÌŽQÆƒ|ƒCƒ“ƒ^ + * @o_ptr ƒAƒCƒeƒ€‚Ö‚ÌŽQÆƒ|ƒCƒ“ƒ^ + * @return Ž©“®E‚¢‚̃ŠƒXƒg‚É“o˜^‚³‚ê‚Ä‚¢‚½‚ç‚»‚Ì“o˜^”ԍ†A‚È‚©‚Á‚½‚ç-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';