summaryrefslogtreecommitdiff
path: root/games/hack/hack.mon.c
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>1999-11-16 10:26:38 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>1999-11-16 10:26:38 +0000
commitb945938c632aa17a5c1e475758d18fc9febf3cbd (patch)
tree839b85661e38597650d090e9cb482291451611bb /games/hack/hack.mon.c
parent727bf60729b6e2f693b3a1162a2f4b32e49bf8bd (diff)
Notes
Diffstat (limited to 'games/hack/hack.mon.c')
-rw-r--r--games/hack/hack.mon.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/games/hack/hack.mon.c b/games/hack/hack.mon.c
index 90511b1af350..218761fd9037 100644
--- a/games/hack/hack.mon.c
+++ b/games/hack/hack.mon.c
@@ -122,7 +122,7 @@ char *name;
youswld(mtmp,dam,die,name)
struct monst *mtmp;
-dam,die;
+int dam,die;
char *name;
{
if(mtmp != u.ustuck) return;
@@ -137,10 +137,10 @@ char *name;
}
dochugw(mtmp) struct monst *mtmp; {
-x = mtmp->mx;
-y = mtmp->my;
-d = dochug(mtmp);
-dd;
+int x = mtmp->mx;
+int y = mtmp->my;
+int d = dochug(mtmp);
+int dd;
if(!d) /* monster still alive */
if(Warning)
if(!mtmp->mpeaceful)
@@ -157,7 +157,7 @@ dochug(mtmp)
struct monst *mtmp;
{
struct permonst *mdat;
- tmp, nearby, scared;
+ int tmp, nearby, scared;
if(mtmp->cham && !rn2(6))
(void) newcham(mtmp, &mons[dlevel+14+rn2(CMNUM-14-dlevel)]);
@@ -239,7 +239,7 @@ m_move(mtmp,after)
struct monst *mtmp;
{
struct monst *mtmp2;
- nx,ny,omx,omy,appr,nearer,cnt,i,j;
+ int nx,ny,omx,omy,appr,nearer,cnt,i,j;
xchar gx,gy,nix,niy,chcnt;
schar chi;
boolean likegold, likegems, likeobjs;
@@ -786,7 +786,7 @@ newcham(mtmp,mdat) /* make a chameleon look like a new monster */
struct monst *mtmp;
struct permonst *mdat;
{
- mhp, hpn, hpd;
+ int mhp, hpn, hpd;
if(mdat == mtmp->data) return(0); /* still the same monster */
#ifndef NOWORM