summaryrefslogtreecommitdiffstats
path: root/robots
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2004-08-27 09:07:08 +0000
committerchristos <christos@NetBSD.org>2004-08-27 09:07:08 +0000
commitde4d1a52a2092219d32f0f0b88b2f3efa7cee540 (patch)
tree689e26c934d8e6166718d62b1a6fdeb3704eae0d /robots
parent4698258a557ea1c0e01df75c4d82ad92d38068d4 (diff)
downloadbsdgames-darwin-de4d1a52a2092219d32f0f0b88b2f3efa7cee540.tar.gz
bsdgames-darwin-de4d1a52a2092219d32f0f0b88b2f3efa7cee540.tar.zst
bsdgames-darwin-de4d1a52a2092219d32f0f0b88b2f3efa7cee540.zip
- sleep a little in autobot mode so that we can see what is happening.
- use refresh() instead of wrefresh()
Diffstat (limited to 'robots')
-rw-r--r--robots/move.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/robots/move.c b/robots/move.c
index d224b650..7edaae35 100644
--- a/robots/move.c
+++ b/robots/move.c
@@ -1,4 +1,4 @@
-/* $NetBSD: move.c,v 1.11 2003/08/07 09:37:36 agc Exp $ */
+/* $NetBSD: move.c,v 1.12 2004/08/27 09:07:08 christos Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: move.c,v 1.11 2003/08/07 09:37:36 agc Exp $");
+__RCSID("$NetBSD: move.c,v 1.12 2004/08/27 09:07:08 christos Exp $");
#endif
#endif /* not lint */
@@ -90,9 +90,13 @@ get_move()
#endif
else {
over:
- if (Auto_bot)
+ if (Auto_bot) {
c = automove();
- else
+ if (!Jump) {
+ usleep(10000);
+ refresh();
+ }
+ } else
c = getchar();
if (isdigit(c)) {
Count = (c - '0');
@@ -181,7 +185,7 @@ teleport:
flush_in();
goto ret;
case CTRL('L'):
- wrefresh(curscr);
+ refresh();
break;
case EOF:
break;