OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8821702
)
Bug fix: command menu is unusable in pet command
author
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 20 Feb 2013 13:04:35 +0000
(13:04 +0000)
committer
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 20 Feb 2013 13:04:35 +0000
(13:04 +0000)
src/cmd5.c
patch
|
blob
|
history
diff --git
a/src/cmd5.c
b/src/cmd5.c
index
d723fac
..
154bbb4
100644
(file)
--- a/
src/cmd5.c
+++ b/
src/cmd5.c
@@
-2359,7
+2359,6
@@
void do_cmd_pet(void)
int powers[36];
cptr power_desc[36];
bool flag, redraw;
- int ask;
char choice;
char out_val[160];
int pet_ctr;
@@
-2692,6
+2691,8
@@
void do_cmd_pet(void)
/* Get a command from the user */
while (!flag)
{
+ int ask = TRUE;
+
if (choice == ESCAPE) choice = ' ';
else if (!get_com(out_val, &choice, TRUE)) break;