diff options
author | Bardur Arantsson <bardur@scientician.net> | 2013-03-26 21:22:54 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2013-09-27 14:46:42 +0200 |
commit | 2555c9c470fc19b77c24d3e534670c8e3904f186 (patch) | |
tree | ce0b299d2b958a66754cdcab002ea0d56c75d0d9 | |
parent | e6a089b5bd1575fc2d54398101f507eb4eb1f7b5 (diff) |
Add missing parameter type and use of "try"
Since C++ requires parameter types and "try" is a C++ keyword
-rw-r--r-- | src/joke.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,10 +1,10 @@ #include "angband.h" -static void gen_joke_place_monster(r_idx) +static void gen_joke_place_monster(int r_idx) { - int try; + int try_; - for (try = 0; try < 1000; try++) + for (try_ = 0; try_ < 1000; try_++) { int x = randint(cur_hgt - 4) + 2; int y = randint(cur_wid - 4) + 2; |