From b945938c632aa17a5c1e475758d18fc9febf3cbd Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Tue, 16 Nov 1999 10:26:38 +0000 Subject: Add type int to those variables without a type. This is caused by the frequent use of ``register var'' instead of ``register int var'' and the removal of the register hint in the previous commit. --- games/hack/hack.cmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'games/hack/hack.cmd.c') diff --git a/games/hack/hack.cmd.c b/games/hack/hack.cmd.c index ba2f428f2eda..27beaaea4261 100644 --- a/games/hack/hack.cmd.c +++ b/games/hack/hack.cmd.c @@ -95,7 +95,7 @@ char *cmd; { struct func_tab *tlist = cmdlist; boolean firsttime = FALSE; - res; + int res; if(!cmd) { firsttime = TRUE; @@ -256,7 +256,7 @@ boolean s; confdir() { - x = rn2(8); + int x = rn2(8); u.dx = xdir[x]; u.dy = ydir[x]; } @@ -297,7 +297,7 @@ isroom(x,y) x,y; { /* what about POOL? */ } #endif QUEST -isok(x,y) x,y; { +isok(x,y) int x,y; { /* x corresponds to curx, so x==1 is the first column. Ach. %% */ return(x >= 1 && x <= COLNO-1 && y >= 0 && y <= ROWNO-1); } -- cgit v1.3