summaryrefslogtreecommitdiffstats
path: root/games/hack
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-09-04 14:35:19 +0000
committerbde <bde@FreeBSD.org>1999-09-04 14:35:19 +0000
commit2db1fa9cd9d21e4c9369760660bd2790a6caa993 (patch)
treef2a317e9ba3dfa4543e224e5ddb6412f1025c7ff /games/hack
parentad2d88c906b8c268343aeb95751bed97dc370bfe (diff)
downloadFreeBSD-src-2db1fa9cd9d21e4c9369760660bd2790a6caa993.zip
FreeBSD-src-2db1fa9cd9d21e4c9369760660bd2790a6caa993.tar.gz
Attempt to fix world breakage for the NOSHARED=yes case. delay_output()
is in both hack and libncurses, and the elf static linker can't handle the duplication. This is probably the correct fix for hack (it makes it clear that the ospeed stuff can go away), but its effect on hack has not been tested, and the linker bug remains open.
Diffstat (limited to 'games/hack')
-rw-r--r--games/hack/hack.pri.c4
-rw-r--r--games/hack/hack.termcap.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/games/hack/hack.pri.c b/games/hack/hack.pri.c
index 13ee6b7..eb412f1 100644
--- a/games/hack/hack.pri.c
+++ b/games/hack/hack.pri.c
@@ -94,7 +94,7 @@ static char let;
return;
}
if(prevx >= 0 && cansee(prevx,prevy)) {
- delay_output();
+ delay_output(50);
prl(prevx, prevy); /* in case there was a monster */
at(prevx, prevy, levl[prevx][prevy].scrsym);
}
@@ -136,7 +136,7 @@ register xx,yy;
}
/* normal call */
if(cansee(x,y)) {
- if(cnt) delay_output();
+ if(cnt) delay_output(50);
at(x,y,let);
tc[cnt].x = x;
tc[cnt].y = y;
diff --git a/games/hack/hack.termcap.c b/games/hack/hack.termcap.c
index bc90c65..43ce418 100644
--- a/games/hack/hack.termcap.c
+++ b/games/hack/hack.termcap.c
@@ -232,6 +232,7 @@ static short tmspc10[] = { /* from termcap */
0, 2000, 1333, 909, 743, 666, 500, 333, 166, 83, 55, 41, 20, 10, 5, 3, 2, 1
};
+#if 0
delay_output() {
/* delay 50 ms - could also use a 'nap'-system call */
/* BUG: if the padding character is visible, as it is on the 5620
@@ -246,7 +247,6 @@ delay_output() {
(void) fflush(stdout);
usleep(50*1000);
}
-#if 0
else if(ospeed > 0 || ospeed < SIZE(tmspc10)) if(CM) {
/* delay by sending cm(here) an appropriate number of times */
register int cmlen = strlen(tgoto(CM, curx-1, cury-1));
@@ -257,8 +257,8 @@ delay_output() {
i -= cmlen*tmspc10[ospeed];
}
}
-#endif
}
+#endif /* 0 */
cl_eos() /* free after Robert Viduya */
{ /* must only be called with curx = 1 */
OpenPOWER on IntegriCloud