summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>1999-11-16 11:55:58 +0000
committermarcel <marcel@FreeBSD.org>1999-11-16 11:55:58 +0000
commit1f86b5a621c2e51a61e461361e1bd7eb85801a08 (patch)
treeb149ed5ffdfb3749fb55d1fd9ba7c419f56bfdf7 /games
parent2227cc5c51e2fdba549d7f71b08a0639cc1bd274 (diff)
downloadFreeBSD-src-1f86b5a621c2e51a61e461361e1bd7eb85801a08.zip
FreeBSD-src-1f86b5a621c2e51a61e461361e1bd7eb85801a08.tar.gz
Fix breakage in previous commit.
Diffstat (limited to 'games')
-rw-r--r--games/rogue/hit.c10
-rw-r--r--games/rogue/message.c4
-rw-r--r--games/rogue/monster.c12
-rw-r--r--games/rogue/move.c4
-rw-r--r--games/rogue/pack.c2
-rw-r--r--games/rogue/room.c4
-rw-r--r--games/rogue/trap.c2
7 files changed, 19 insertions, 19 deletions
diff --git a/games/rogue/hit.c b/games/rogue/hit.c
index bae3c60..ee74e6b 100644
--- a/games/rogue/hit.c
+++ b/games/rogue/hit.c
@@ -180,7 +180,7 @@ get_damage(ds, r)
const char *ds;
boolean r;
{
- i = 0, j, n, d, total = 0;
+ int i = 0, j, n, d, total = 0;
while (ds[i]) {
n = get_number(ds+i);
@@ -206,8 +206,8 @@ get_w_damage(obj)
const object *obj;
{
char new_damage[12];
- to_hit, damage;
- i = 0;
+ int to_hit, damage;
+ int i = 0;
if ((!obj) || (obj->what_is != WEAPON)) {
return(-1);
@@ -224,8 +224,8 @@ const object *obj;
get_number(s)
const char *s;
{
- i = 0;
- total = 0;
+ int i = 0;
+ int total = 0;
while ((s[i] >= '0') && (s[i] <= '9')) {
total = (10 * total) + (s[i] - '0');
diff --git a/games/rogue/message.c b/games/rogue/message.c
index 732033c..10751c4 100644
--- a/games/rogue/message.c
+++ b/games/rogue/message.c
@@ -192,7 +192,7 @@ boolean do_echo;
rgetchar()
{
- ch;
+ int ch;
for(;;) {
ch = getchar();
@@ -222,7 +222,7 @@ Level: 99 Gold: 999999 Hp: 999(999) Str: 99(99) Arm: 99 Exp: 21/10000000 Hungry
*/
print_stats(stat_mask)
-stat_mask;
+int stat_mask;
{
char buf[16];
boolean label;
diff --git a/games/rogue/monster.c b/games/rogue/monster.c
index 1490e43..da16eaa 100644
--- a/games/rogue/monster.c
+++ b/games/rogue/monster.c
@@ -147,7 +147,7 @@ put_mons()
object *
gr_monster(monster, mn)
object *monster;
-mn;
+int mn;
{
if (!monster) {
monster = alloc_object();
@@ -267,7 +267,7 @@ int rn, n;
}
gmc_row_col(row, col)
-row, col;
+int row, col;
{
object *monster;
@@ -454,7 +454,7 @@ object *monster;
short row, col;
{
short c;
- mrow, mcol;
+ int mrow, mcol;
mrow = monster->row;
mcol = monster->col;
@@ -603,7 +603,7 @@ const object *monster;
}
rogue_is_around(row, col)
-row, col;
+int row, col;
{
short rdif, cdif, retval;
@@ -731,9 +731,9 @@ object *monster;
}
rogue_can_see(row, col)
-row, col;
+int row, col;
{
- retval;
+ int retval;
retval = !blind &&
(((get_room_number(row, col) == cur_room) &&
diff --git a/games/rogue/move.c b/games/rogue/move.c
index 59c92e4..b892a0a 100644
--- a/games/rogue/move.c
+++ b/games/rogue/move.c
@@ -226,7 +226,7 @@ short dirch;
}
is_passable(row, col)
-row, col;
+int row, col;
{
if ((row < MIN_ROW) || (row > (DROWS - 2)) || (col < 0) ||
(col > (DCOLS-1))) {
@@ -239,7 +239,7 @@ row, col;
}
next_to_something(drow, dcol)
-drow, dcol;
+int drow, dcol;
{
short i, j, i_end, j_end, row, col;
short pass_count = 0;
diff --git a/games/rogue/pack.c b/games/rogue/pack.c
index 6946e96..9aab305 100644
--- a/games/rogue/pack.c
+++ b/games/rogue/pack.c
@@ -247,7 +247,7 @@ object *obj, *pack;
next_avail_ichar()
{
object *obj;
- i;
+ int i;
boolean ichars[26];
for (i = 0; i < 26; i++) {
diff --git a/games/rogue/room.c b/games/rogue/room.c
index 6285ec2..7cc1b1e 100644
--- a/games/rogue/room.c
+++ b/games/rogue/room.c
@@ -175,7 +175,7 @@ short rn;
}
get_dungeon_char(row, col)
-row, col;
+int row, col;
{
unsigned short mask = dungeon[row][col];
@@ -314,7 +314,7 @@ party_objects(rn)
}
get_room_number(row, col)
-row, col;
+int row, col;
{
short i;
diff --git a/games/rogue/trap.c b/games/rogue/trap.c
index 7467f55..861120d 100644
--- a/games/rogue/trap.c
+++ b/games/rogue/trap.c
@@ -81,7 +81,7 @@ extern boolean sustain_strength;
extern short blind;
trap_at(row, col)
-row, col;
+int row, col;
{
short i;
OpenPOWER on IntegriCloud