diff options
author | Bardur Arantsson <bardur@scientician.net> | 2011-02-20 20:23:22 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2011-02-20 20:56:56 +0100 |
commit | b35abe4978f83bee7eebdcce7df4228503086ed4 (patch) | |
tree | f39569937dab4769ad44526bf4b4861ccf0148f7 /src/monster2.c | |
parent | 5fbe06613a8a9e5d8731a832ddff0e9bdce112bb (diff) |
Avoid using C++ keywords as identifiers.
Diffstat (limited to 'src/monster2.c')
-rw-r--r-- | src/monster2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/monster2.c b/src/monster2.c index 0f9d1dc6..841a6428 100644 --- a/src/monster2.c +++ b/src/monster2.c @@ -59,9 +59,9 @@ void monster_check_experience(int m_idx, bool_ silent) /* Gain melee power */ if (magik(30)) { - int i = rand_int(3), try = 20; + int i = rand_int(3), tries = 20; - while ((try--) && !m_ptr->blow[i].d_dice) i = rand_int(3); + while ((tries--) && !m_ptr->blow[i].d_dice) i = rand_int(3); m_ptr->blow[i].d_dice++; } |