diff options
Diffstat (limited to 'hack/hack.trap.c')
-rw-r--r-- | hack/hack.trap.c | 41 |
1 files changed, 17 insertions, 24 deletions
diff --git a/hack/hack.trap.c b/hack/hack.trap.c index 9d7a8058..da058edf 100644 --- a/hack/hack.trap.c +++ b/hack/hack.trap.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.trap.c,v 1.7 2003/04/02 18:36:41 jsm Exp $ */ +/* $NetBSD: hack.trap.c,v 1.8 2009/06/07 18:30:39 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.trap.c,v 1.7 2003/04/02 18:36:41 jsm Exp $"); +__RCSID("$NetBSD: hack.trap.c,v 1.8 2009/06/07 18:30:39 dholland Exp $"); #endif /* not lint */ #include <stdlib.h> @@ -86,8 +86,7 @@ const char *const traps[] = { }; struct trap * -maketrap(x, y, typ) - int x, y, typ; +maketrap(int x, int y, int typ) { struct trap *ttmp; @@ -103,8 +102,7 @@ maketrap(x, y, typ) } void -dotrap(trap) - struct trap *trap; +dotrap(struct trap *trap) { int ttype = trap->ttyp; @@ -206,8 +204,7 @@ dotrap(trap) } int -mintrap(mtmp) - struct monst *mtmp; +mintrap(struct monst *mtmp) { struct trap *trap = t_at(mtmp->mx, mtmp->my); int wasintrap = mtmp->mtrapped; @@ -299,8 +296,7 @@ mintrap(mtmp) } void -selftouch(arg) - const char *arg; +selftouch(const char *arg) { if (uwep && uwep->otyp == DEAD_COCKATRICE) { pline("%s touch the dead cockatrice.", arg); @@ -311,7 +307,7 @@ selftouch(arg) } void -float_up() +float_up(void) { if (u.utrap) { if (u.utraptype == TT_PIT) { @@ -325,7 +321,7 @@ float_up() } void -float_down() +float_down(void) { struct trap *trap; pline("You float gently to the ground."); @@ -344,7 +340,7 @@ float_down() } void -vtele() +vtele(void) { struct mkroom *croom; for (croom = &rooms[0]; croom->hx >= 0; croom++) @@ -362,7 +358,7 @@ vtele() } void -tele() +tele(void) { coord cc; int nux, nuy; @@ -388,8 +384,7 @@ tele() } void -teleds(nux, nuy) - int nux, nuy; +teleds(int nux, int nuy) { if (Punished) unplacebc(); @@ -415,8 +410,7 @@ teleds(nux, nuy) } int -teleok(x, y) - int x, y; +teleok(int x, int y) { /* might throw him into a POOL */ return (isok(x, y) && !IS_ROCK(levl[x][y].typ) && !m_at(x, y) && !sobj_at(ENORMOUS_ROCK, x, y) && !t_at(x, y) @@ -425,7 +419,7 @@ teleok(x, y) } int -dotele() +dotele(void) { if ( #ifdef WIZARD @@ -446,8 +440,7 @@ dotele() } void -placebc(attach) - int attach; +placebc(int attach) { if (!uchain || !uball) { impossible("Where are your chain and ball??"); @@ -466,7 +459,7 @@ placebc(attach) } void -unplacebc() +unplacebc(void) { if (!carried(uball)) { freeobj(uball); @@ -477,7 +470,7 @@ unplacebc() } void -level_tele() +level_tele(void) { int newlevel; if (Teleport_control) { @@ -529,7 +522,7 @@ level_tele() } void -drown() +drown(void) { pline("You fall into a pool!"); pline("You can't swim!"); |