OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e82bf87
)
[Refactor] #37353 do_cmd_kaji() の作業制限処理を整理.
author
deskull
<deskull@users.sourceforge.jp>
Thu, 13 Jun 2019 13:48:44 +0000
(22:48 +0900)
committer
deskull
<deskull@users.sourceforge.jp>
Thu, 13 Jun 2019 13:48:44 +0000
(22:48 +0900)
src/cmd-smith.c
patch
|
blob
|
history
diff --git
a/src/cmd-smith.c
b/src/cmd-smith.c
index
b68da26
..
0b2c85f
100644
(file)
--- a/
src/cmd-smith.c
+++ b/
src/cmd-smith.c
@@
-1378,16
+1378,8
@@
void do_cmd_kaji(bool only_browse)
if (!only_browse)
{
if (cmd_limit_confused(p_ptr)) return;
- if (p_ptr->blind)
- {
- msg_print(_("目が見えなくて作業できない!", "You are blind!"));
- return;
- }
- if (p_ptr->image)
- {
- msg_print(_("うまく見えなくて作業できない!", "You are hallucinating!"));
- return;
- }
+ if (cmd_limit_blind(p_ptr)) return;
+ if (cmd_limit_image(p_ptr)) return;
}
if (!(repeat_pull(&mode) && 1 <= mode && mode <= 5))