summaryrefslogtreecommitdiffstats
path: root/atc
diff options
context:
space:
mode:
authorbriggs <briggs@NetBSD.org>1998-07-28 03:00:09 +0000
committerbriggs <briggs@NetBSD.org>1998-07-28 03:00:09 +0000
commita0840891be27db447cd2f85fa3731ddcc658a57e (patch)
treef375be931af4007843b63dd151a6018193288acb /atc
parent8a77511785eeb4432941f91573bd2d3ad6cdde97 (diff)
downloadbsdgames-darwin-a0840891be27db447cd2f85fa3731ddcc658a57e.tar.gz
bsdgames-darwin-a0840891be27db447cd2f85fa3731ddcc658a57e.tar.zst
bsdgames-darwin-a0840891be27db447cd2f85fa3731ddcc658a57e.zip
An airplane on a heading of 315, given instruction to turn
right 45 degrees should turn to direction 0, not circle.
Diffstat (limited to 'atc')
-rw-r--r--atc/input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/atc/input.c b/atc/input.c
index 780f2ebf..a311d502 100644
--- a/atc/input.c
+++ b/atc/input.c
@@ -1,4 +1,4 @@
-/* $NetBSD: input.c,v 1.8 1998/07/28 02:46:13 briggs Exp $ */
+/* $NetBSD: input.c,v 1.9 1998/07/28 03:00:09 briggs Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -50,7 +50,7 @@
#if 0
static char sccsid[] = "@(#)input.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: input.c,v 1.8 1998/07/28 02:46:13 briggs Exp $");
+__RCSID("$NetBSD: input.c,v 1.9 1998/07/28 03:00:09 briggs Exp $");
#endif
#endif not lint
@@ -424,7 +424,7 @@ right(c)
{
dir = D_RIGHT;
p.new_dir = p.dir + 1;
- if (p.new_dir > MAXDIR)
+ if (p.new_dir >= MAXDIR)
p.new_dir -= MAXDIR;
return (NULL);
}