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_one.c | |
parent | 7781da3afe1ed2c26324a88ff009a11e6bb52216 (diff) |
Use C++ friendly identifiers in quest code.
Diffstat (limited to 'src/q_one.c')
-rw-r--r-- | src/q_one.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |