diff options
author | dholland <dholland@NetBSD.org> | 2009-08-12 07:28:40 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-08-12 07:28:40 +0000 |
commit | 8b1c71ee649fb41155da92995044e451c39ea700 (patch) | |
tree | 24e74c8d453828689bfeac45e6162912f3c42d76 /hack/hack.c | |
parent | 31f496067cd42ce5ff71163efa5921ab6522e4aa (diff) | |
download | bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.tar.gz bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.tar.zst bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.zip |
sprinkle static
Diffstat (limited to 'hack/hack.c')
-rw-r--r-- | hack/hack.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/hack/hack.c b/hack/hack.c index 72c2ee9c..8da2c771 100644 --- a/hack/hack.c +++ b/hack/hack.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.c,v 1.8 2009/06/07 18:30:39 dholland Exp $ */ +/* $NetBSD: hack.c,v 1.9 2009/08/12 07:28:40 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,12 +63,15 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.c,v 1.8 2009/06/07 18:30:39 dholland Exp $"); +__RCSID("$NetBSD: hack.c,v 1.9 2009/08/12 07:28:40 dholland Exp $"); #endif /* not lint */ #include "hack.h" #include "extern.h" +static void movobj(struct obj *, int, int); +static int inv_cnt(void); + /* * called on movement: 1. when throwing ball+chain far away 2. when * teleporting 3. when walking out of a lit room @@ -381,7 +384,7 @@ nodrag: ; read_engr_at(u.ux, u.uy); } -void +static void movobj(struct obj *obj, int ox, int oy) { /* Some dirty programming to get display right */ @@ -947,7 +950,7 @@ inv_weight(void) return (wt - carrcap); } -int +static int inv_cnt(void) { struct obj *otmp = invent; |