summaryrefslogtreecommitdiff
path: root/games/rogue/trap.c
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>1998-08-22 08:56:02 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>1998-08-22 08:56:02 +0000
commit6910826c1b27cf6a9d4cb8400743d571d3c9a27b (patch)
tree9562c830236235b683790903daad5db093658719 /games/rogue/trap.c
parent92cf145f2c1e59139400da3a8db7b06cc24b7b54 (diff)
More largely NetBSD-inspired code cleanup
Diffstat (limited to 'games/rogue/trap.c')
-rw-r--r--games/rogue/trap.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/games/rogue/trap.c b/games/rogue/trap.c
index 7cfa6eb893e..a6775824cdc 100644
--- a/games/rogue/trap.c
+++ b/games/rogue/trap.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: trap.c,v 1.3 1998/08/22 08:55:50 pjanzen Exp $ */
/* $NetBSD: trap.c,v 1.3 1995/04/22 10:28:35 cgd Exp $ */
/*
@@ -52,7 +53,7 @@ static char rcsid[] = "$NetBSD: trap.c,v 1.3 1995/04/22 10:28:35 cgd Exp $";
* 1.) No portion of this notice shall be removed.
* 2.) Credit shall not be taken for the creation of this source.
* 3.) This code is not to be traded, sold, or used for personal
- * gain or profit.
+ * gain or profit.
*
*/
@@ -77,15 +78,9 @@ char *trap_strings[TRAPS * 2] = {
"a gush of water hits you on the head"
};
-extern short cur_level, party_room;
-extern char *new_level_message;
-extern boolean interrupted;
-extern short ring_exp;
-extern boolean sustain_strength;
-extern short blind;
-
+short
trap_at(row, col)
-register row, col;
+ short row, col;
{
short i;
@@ -97,8 +92,9 @@ register row, col;
return(NO_TRAP);
}
+void
trap_player(row, col)
-short row, col;
+ short row, col;
{
short t;
@@ -149,6 +145,7 @@ short row, col;
}
}
+void
add_traps()
{
short i, n, tries = 0;
@@ -193,6 +190,7 @@ add_traps()
}
}
+void
id_trap()
{
short dir, row, col, d, t;
@@ -220,6 +218,7 @@ id_trap()
}
}
+void
show_traps()
{
short i, j;
@@ -233,9 +232,10 @@ show_traps()
}
}
+void
search(n, is_auto)
-short n;
-boolean is_auto;
+ short n;
+ boolean is_auto;
{
short s, i, j, row, col, t;
short shown = 0, found = 0;