summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2013-03-26 21:22:54 +0100
committerBardur Arantsson <bardur@scientician.net>2013-09-27 14:46:42 +0200
commit2555c9c470fc19b77c24d3e534670c8e3904f186 (patch)
treece0b299d2b958a66754cdcab002ea0d56c75d0d9
parente6a089b5bd1575fc2d54398101f507eb4eb1f7b5 (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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/joke.c b/src/joke.c
index 0ff01557..ed07dcd3 100644
--- a/src/joke.c
+++ b/src/joke.c
@@ -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;