X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/9a33f5bfb221170e823efd3c33ab5d331baf7c74..4749c0f9e18f87c21e43a65ffbf2d9c08ecf7a3a:/hack/hack.fight.c diff --git a/hack/hack.fight.c b/hack/hack.fight.c index 33dd6010..dc5074cc 100644 --- a/hack/hack.fight.c +++ b/hack/hack.fight.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.fight.c,v 1.10 2009/06/07 20:13:18 dholland Exp $ */ +/* $NetBSD: hack.fight.c,v 1.12 2009/08/12 07:28:40 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include #ifndef lint -__RCSID("$NetBSD: hack.fight.c,v 1.10 2009/06/07 20:13:18 dholland Exp $"); +__RCSID("$NetBSD: hack.fight.c,v 1.12 2009/08/12 07:28:40 dholland Exp $"); #endif /* not lint */ #include "hack.h" @@ -72,6 +72,8 @@ __RCSID("$NetBSD: hack.fight.c,v 1.10 2009/06/07 20:13:18 dholland Exp $"); static boolean far_noise; static long noisetime; +static void monstone(struct monst *); + /* hitmm returns 0 (miss), 1 (hit), or 2 (kill) */ int hitmm(struct monst *magr, struct monst *mdef) @@ -158,7 +160,7 @@ mondied(struct monst *mdef) } /* drop a rock and remove monster */ -void +static void monstone(struct monst *mdef) { if (strchr(mlarge, mdef->data->mlet)) @@ -209,7 +211,7 @@ thitu(int tlev, int dam, const char *name) } } -char mlarge[] = "bCDdegIlmnoPSsTUwY',&"; +const char mlarge[] = "bCDdegIlmnoPSsTUwY',&"; /* return TRUE if mon still alive */ boolean