diff options
author | Bardur Arantsson <bardur@scientician.net> | 2011-02-20 09:23:42 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2011-02-20 09:23:42 +0100 |
commit | 534032607ebc420df5c26d7af9c488ea4a318e81 (patch) | |
tree | ce5dfdc7390422e7b14fd7a7a417c8d6ef8f6e40 /src/q_shroom.c | |
parent | 7781da3afe1ed2c26324a88ff009a11e6bb52216 (diff) |
Use C++ friendly identifiers in quest code.
Diffstat (limited to 'src/q_shroom.c')
-rw-r--r-- | src/q_shroom.c | 6 |
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 */ |