diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-11 15:31:49 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-11 15:31:49 +0000 |
commit | a6a6d78ab2bad18daf46daa527a5f77a4f521386 (patch) | |
tree | 2c720d45511ab25bdd1367343ca7acd11e838697 | |
parent | fce3fae9cf639cd851ac7f0c13161a7086a0c248 (diff) |
curses has its own delay_output() function, so use that instead of own own
-rw-r--r-- | games/hack/hack.pri.c | 4 | ||||
-rw-r--r-- | games/hack/hack.termcap.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/games/hack/hack.pri.c b/games/hack/hack.pri.c index 0a8606ace69..4d1865db968 100644 --- a/games/hack/hack.pri.c +++ b/games/hack/hack.pri.c @@ -99,7 +99,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); } @@ -141,7 +141,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 122dafef083..d627dd188f1 100644 --- a/games/hack/hack.termcap.c +++ b/games/hack/hack.termcap.c @@ -237,6 +237,7 @@ bell() (void) fflush(stdout); } +#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 @@ -258,6 +259,7 @@ delay_output() { } } } +#endif cl_eos() /* free after Robert Viduya */ { /* must only be called with curx = 1 */ |