summaryrefslogtreecommitdiffstats
path: root/rogue/throw.c
diff options
context:
space:
mode:
Diffstat (limited to 'rogue/throw.c')
-rw-r--r--rogue/throw.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/rogue/throw.c b/rogue/throw.c
index ac380c6e..e55e05ee 100644
--- a/rogue/throw.c
+++ b/rogue/throw.c
@@ -1,4 +1,4 @@
-/* $NetBSD: throw.c,v 1.9 2008/01/14 00:23:53 dholland Exp $ */
+/* $NetBSD: throw.c,v 1.10 2008/01/14 03:50:03 dholland Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)throw.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: throw.c,v 1.9 2008/01/14 00:23:53 dholland Exp $");
+__RCSID("$NetBSD: throw.c,v 1.10 2008/01/14 03:50:03 dholland Exp $");
#endif
#endif /* not lint */
@@ -56,7 +56,7 @@ __RCSID("$NetBSD: throw.c,v 1.9 2008/01/14 00:23:53 dholland Exp $");
#include "rogue.h"
void
-throw()
+throw(void)
{
short wch, d;
boolean first_miss = 1;
@@ -120,8 +120,7 @@ throw()
}
boolean
-throw_at_monster(monster, weapon)
- object *monster, *weapon;
+throw_at_monster(object *monster, object *weapon)
{
short damage, hit_chance;
short t;
@@ -156,10 +155,7 @@ throw_at_monster(monster, weapon)
}
object *
-get_thrown_at_monster(obj, dir, row, col)
- object *obj;
- short dir;
- short *row, *col;
+get_thrown_at_monster(object *obj, short dir, short *row, short *col)
{
short orow, ocol;
short i, ch;
@@ -201,9 +197,7 @@ get_thrown_at_monster(obj, dir, row, col)
}
void
-flop_weapon(weapon, row, col)
- object *weapon;
- short row, col;
+flop_weapon(object *weapon, short row, short col)
{
object *new_weapon, *monster;
short i = 0;
@@ -263,8 +257,7 @@ flop_weapon(weapon, row, col)
}
void
-rand_around(i, r, c)
- short i, *r, *c;
+rand_around(short i, short *r, short *c)
{
static char pos[] = "\010\007\001\003\004\005\002\006\0";
static short row, col;