summaryrefslogtreecommitdiff
path: root/games/hack/hack.c
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>2001-08-06 22:59:14 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>2001-08-06 22:59:14 +0000
commitfd84030e113cfc21538f46f52601e75d11d7cd46 (patch)
treefbb40ee2d238fafdbc28bc69fc3a2c9946ac7f2b /games/hack/hack.c
parentae0bab4889690c7680ac2b500763a7cadd471d12 (diff)
Nothing but comments after #endif and #else; heko@iki.fi
Diffstat (limited to 'games/hack/hack.c')
-rw-r--r--games/hack/hack.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/games/hack/hack.c b/games/hack/hack.c
index 103c2d26a5f..20acfc899b6 100644
--- a/games/hack/hack.c
+++ b/games/hack/hack.c
@@ -1,11 +1,11 @@
-/* $OpenBSD: hack.c,v 1.3 2001/01/28 23:41:43 niklas Exp $ */
+/* $OpenBSD: hack.c,v 1.4 2001/08/06 22:59:13 pjanzen Exp $ */
/*
* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: hack.c,v 1.3 2001/01/28 23:41:43 niklas Exp $";
+static char rcsid[] = "$OpenBSD: hack.c,v 1.4 2001/08/06 22:59:13 pjanzen Exp $";
#endif /* not lint */
#include "hack.h"
@@ -36,7 +36,7 @@ unsee() {
if(seehx){
seehx = 0;
} else
-#endif QUEST
+#endif /* QUEST */
for(x = u.ux-1; x < u.ux+2; x++)
for(y = u.uy-1; y < u.uy+2; y++) {
if(!isok(x, y)) continue;
@@ -70,7 +70,7 @@ seeoff(mode) /* 1 to redo @, 0 to leave them */
if(seehx) {
seehx = 0;
} else
-#endif QUEST
+#endif /* QUEST */
if(!mode) {
for(x = u.ux-1; x < u.ux+2; x++)
for(y = u.uy-1; y < u.uy+2; y++) {
@@ -303,7 +303,7 @@ domove()
}
nose1(oldx-u.dx,oldy-u.dy);
}
-#endif QUEST
+#endif /* QUEST */
} else {
pru();
}
@@ -478,12 +478,12 @@ register struct monst *mtmp;
#ifdef lint
/* suppress "used before set" message */
x0 = y0 = 0;
-#endif lint
+#endif /* lint */
if(Blind || flags.run == 0) return;
if(flags.run == 1 && levl[u.ux][u.uy].typ == ROOM) return;
#ifdef QUEST
if(u.ux0 == u.ux+u.dx && u.uy0 == u.uy+u.dy) goto stop;
-#endif QUEST
+#endif /* QUEST */
for(x = u.ux-1; x <= u.ux+1; x++) for(y = u.uy-1; y <= u.uy+1; y++){
if(x == u.ux && y == u.uy) continue;
if(!levl[x][y].typ) continue;
@@ -533,7 +533,7 @@ register struct monst *mtmp;
}
#ifdef QUEST
if(corrct > 0 && (flags.run == 4 || flags.run == 5)) goto stop;
-#endif QUEST
+#endif /* QUEST */
if(corrct > 1 && flags.run == 2) goto stop;
if((flags.run == 1 || flags.run == 3) && !noturn && !m0 && i0 &&
(corrct == 1 || (corrct == 2 && i0 == 1))) {
@@ -629,7 +629,7 @@ cansee(x,y) xchar x,y; {
y <= seehy) return(1);
return(0);
}
-#endif QUEST
+#endif /* QUEST */
sgn(a) register int a; {
return((a > 0) ? 1 : (a == 0) ? 0 : -1);
@@ -684,7 +684,7 @@ setsee()
if(seehx == u.ux) for(y = u.uy-1; y <= u.uy+1; y++) prl(seehx+1,y);
}
}
-#endif QUEST
+#endif /* QUEST */
nomul(nval)
register nval;