summaryrefslogtreecommitdiff
path: root/src/q_shroom.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2011-02-20 09:23:42 +0100
committerBardur Arantsson <bardur@scientician.net>2011-02-20 09:23:42 +0100
commit534032607ebc420df5c26d7af9c488ea4a318e81 (patch)
treece5dfdc7390422e7b14fd7a7a417c8d6ef8f6e40 /src/q_shroom.c
parent7781da3afe1ed2c26324a88ff009a11e6bb52216 (diff)
Use C++ friendly identifiers in quest code.
Diffstat (limited to 'src/q_shroom.c')
-rw-r--r--src/q_shroom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/q_shroom.c b/src/q_shroom.c
index c8cc3bec..cb3f57d7 100644
--- a/src/q_shroom.c
+++ b/src/q_shroom.c
@@ -5,7 +5,7 @@ bool quest_shroom_speak_hook(char *fmt);
bool quest_shroom_town_gen_hook(char *fmt)
{
- int m_idx, x = 1, y = 1, try = 10000;
+ int m_idx, x = 1, y = 1, tries = 10000;
s32b small;
small = get_next_arg(fmt);
@@ -59,7 +59,7 @@ bool quest_shroom_town_gen_hook(char *fmt)
if ((bst(HOUR, turn) < 6) || (bst(HOUR, turn) >= 18) || (cquest.status > QUEST_STATUS_COMPLETED) || (small) || (p_ptr->town_num != 1)) return (FALSE);
/* Find a good position */
- while (try)
+ while (tries)
{
/* Get a random spot */
y = randint(20) + (cur_hgt / 2) - 10;
@@ -71,7 +71,7 @@ bool quest_shroom_town_gen_hook(char *fmt)
cave_plain_floor_bold(y, x)) break;
/* One less try */
- try--;
+ tries--;
}
/* Place Farmer Maggot */