From 534032607ebc420df5c26d7af9c488ea4a318e81 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sun, 20 Feb 2011 09:23:42 +0100 Subject: Use C++ friendly identifiers in quest code. --- src/q_one.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/q_one.c') diff --git a/src/q_one.c b/src/q_one.c index c11c5233..a52b37b8 100644 --- a/src/q_one.c +++ b/src/q_one.c @@ -318,14 +318,14 @@ bool quest_one_dump_hook(char *fmt) } bool quest_one_gen_hook(char *fmt) { - s32b x, y, try = 10000; + s32b x, y, tries = 10000; /* Paranoia */ if (cquest.status != QUEST_STATUS_TAKEN) return (FALSE); if ((dungeon_type != DUNGEON_ANGBAND) || (dun_level != 99)) return (FALSE); /* Find a good position */ - while (try) + while (tries) { /* Get a random spot */ y = randint(cur_hgt - 4) + 2; @@ -335,10 +335,10 @@ bool quest_one_gen_hook(char *fmt) if (cave_empty_bold(y, x)) break; /* One less try */ - try--; + tries--; } - if (try) + if (tries) { int m_idx = place_monster_one(y, x, test_monster_name("Sauron, the Sorcerer"), 0, FALSE, MSTATUS_ENEMY); if (m_idx) m_list[m_idx].mflag |= MFLAG_QUEST; -- cgit v1.2.3