diff options
author | billf <billf@FreeBSD.org> | 1999-11-16 02:58:06 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 1999-11-16 02:58:06 +0000 |
commit | 44fac3a89d25ca434f91c4f961a363ea590faae8 (patch) | |
tree | a0cca4d47c73890ff2acd4b0d9331509ac360eb2 /games/larn/movem.c | |
parent | ecc8d489403ddff78c214db39def15049d5dae6a (diff) | |
download | FreeBSD-src-44fac3a89d25ca434f91c4f961a363ea590faae8.zip FreeBSD-src-44fac3a89d25ca434f91c4f961a363ea590faae8.tar.gz |
Sync our register usage with NetBSD's (non-)usage.
Diffstat (limited to 'games/larn/movem.c')
-rw-r--r-- | games/larn/movem.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/games/larn/movem.c b/games/larn/movem.c index 5091875..8ae1358 100644 --- a/games/larn/movem.c +++ b/games/larn/movem.c @@ -22,7 +22,7 @@ static short w1[9],w1x[9],w1y[9]; static int tmp1,tmp2,tmp3,tmp4,distance; movemonst() { - register int i,j; + int i,j; if (c[TIMESTOP]) return; /* no action if time is stopped */ if (c[HASTESELF]) if ((c[HASTESELF]&1)==0) return; if (spheres) movsphere(); /* move the spheres of annihilation if any */ @@ -95,7 +95,7 @@ static int tmpitem,xl,xh,yl,yh; movemt(i,j) int i,j; { - register int k,m,z,tmp,xtmp,ytmp,monst; + int k,m,z,tmp,xtmp,ytmp,monst; switch(monst=mitem[i][j]) /* for half speed monsters */ { case TROGLODYTE: case HOBGOBLIN: case METAMORPH: case XVART: @@ -192,7 +192,7 @@ out: if (tmp<distance) /* did find connectivity */ mmove(aa,bb,cc,dd) int aa,bb,cc,dd; { - register int tmp,i,flag; + int tmp,i,flag; char *who,*p; flag=0; /* set to 1 if monster hit by arrow trap */ if ((cc==playerx) && (dd==playery)) @@ -276,8 +276,8 @@ mmove(aa,bb,cc,dd) #define SPHMAX 20 /* maximum number of spheres movsphere can handle */ movsphere() { - register int x,y,dir,len; - register struct sphere *sp,*sp2; + int x,y,dir,len; + struct sphere *sp,*sp2; struct sphere sph[SPHMAX]; /* first duplicate sphere list */ |