From dfce1cca7e9f2a93d3246b5dba2113e20cbc447a Mon Sep 17 00:00:00 2001 From: dholland Date: Mon, 28 Jan 2008 06:55:41 +0000 Subject: Make hack build with WARNS=4. --- hack/hack.mon.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'hack/hack.mon.c') diff --git a/hack/hack.mon.c b/hack/hack.mon.c index e88ce6cb..187382ff 100644 --- a/hack/hack.mon.c +++ b/hack/hack.mon.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.mon.c,v 1.7 2006/03/30 01:28:46 jnemeth Exp $ */ +/* $NetBSD: hack.mon.c,v 1.8 2008/01/28 06:55:41 dholland Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include #ifndef lint -__RCSID("$NetBSD: hack.mon.c,v 1.7 2006/03/30 01:28:46 jnemeth Exp $"); +__RCSID("$NetBSD: hack.mon.c,v 1.8 2008/01/28 06:55:41 dholland Exp $"); #endif /* not lint */ #include @@ -217,9 +217,10 @@ dochugw(mtmp) { int x = mtmp->mx; int y = mtmp->my; - int d = dochug(mtmp); + int dead = dochug(mtmp); int dd; - if (!d) /* monster still alive */ + + if (!dead) /* monster still alive */ if (Warning) if (!mtmp->mpeaceful) if (mtmp->data->mlevel > warnlevel) @@ -227,7 +228,7 @@ dochugw(mtmp) if (dd < 100) if (!canseemon(mtmp)) warnlevel = mtmp->data->mlevel; - return (d); + return (dead); } /* returns 1 if monster died moving, 0 otherwise */ -- cgit v1.2.3-56-ge451