summaryrefslogtreecommitdiff
path: root/src/q_nazgul.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_nazgul.c
parent7781da3afe1ed2c26324a88ff009a11e6bb52216 (diff)
Use C++ friendly identifiers in quest code.
Diffstat (limited to 'src/q_nazgul.c')
-rw-r--r--src/q_nazgul.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/q_nazgul.c b/src/q_nazgul.c
index ef188b16..2f9b4bf8 100644
--- a/src/q_nazgul.c
+++ b/src/q_nazgul.c
@@ -3,7 +3,7 @@
bool quest_nazgul_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);
@@ -11,7 +11,7 @@ bool quest_nazgul_gen_hook(char *fmt)
if ((cquest.status != QUEST_STATUS_TAKEN) || (small) || (p_ptr->town_num != 1)) return (FALSE);
/* Find a good position */
- while (try)
+ while (tries)
{
/* Get a random spot */
y = randint(cur_hgt - 4) + 2;
@@ -22,7 +22,7 @@ bool quest_nazgul_gen_hook(char *fmt)
if ((!los(p_ptr->py, p_ptr->px, y, x)) && cave_empty_bold(y, x)) break;
/* One less try */
- try--;
+ tries--;
}
/* Place the nazgul */