summaryrefslogtreecommitdiffstats
path: root/robots/auto.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2002-01-31 17:35:52 +0000
committerchristos <christos@NetBSD.org>2002-01-31 17:35:52 +0000
commit026158ce21511a76693e38921c011f2f2fa66002 (patch)
tree0638bd14d8d715f211ff76076c7bec33f8dbd9ce /robots/auto.c
parentf04999017eaf3d433b717aba1d49698eb50f2660 (diff)
downloadbsdgames-darwin-026158ce21511a76693e38921c011f2f2fa66002.tar.gz
bsdgames-darwin-026158ce21511a76693e38921c011f2f2fa66002.zip
Be more verbose about teleports, and fix a minor problem in autobot mode.
Diffstat (limited to 'robots/auto.c')
-rw-r--r--robots/auto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/robots/auto.c b/robots/auto.c
index c0a15bf8..29bba259 100644
--- a/robots/auto.c
+++ b/robots/auto.c
@@ -1,4 +1,4 @@
-/* $NetBSD: auto.c,v 1.4 1999/09/08 21:17:56 jsm Exp $ */
+/* $NetBSD: auto.c,v 1.5 2002/01/31 17:35:52 christos Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -236,7 +236,7 @@ move_towards(dx, dy)
(void)strcpy(ok_moves, find_moves());
best_move = ok_moves[0];
- if (best_move != 'F') {
+ if (best_move != 't') {
mvx = xinc(best_move);
mvy = yinc(best_move);
move_judge = ABS(mvx - dx) + ABS(mvy - dy);