diff options
author | briggs <briggs@NetBSD.org> | 1998-07-28 02:46:13 +0000 |
---|---|---|
committer | briggs <briggs@NetBSD.org> | 1998-07-28 02:46:13 +0000 |
commit | 8a77511785eeb4432941f91573bd2d3ad6cdde97 (patch) | |
tree | 0a352773eab04c1a8486dc8a15f6418e2946ba36 /atc | |
parent | c57fa9b1accc28bd366bc1236a0a39ec8aea5130 (diff) | |
download | bsdgames-darwin-8a77511785eeb4432941f91573bd2d3ad6cdde97.tar.gz bsdgames-darwin-8a77511785eeb4432941f91573bd2d3ad6cdde97.tar.zst bsdgames-darwin-8a77511785eeb4432941f91573bd2d3ad6cdde97.zip |
An airplane on a heading of 270, given instruction to turn
right 90 degrees should turn to direction 0, not circle.
Diffstat (limited to 'atc')
-rw-r--r-- | atc/input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/atc/input.c b/atc/input.c index 4a094299..780f2ebf 100644 --- a/atc/input.c +++ b/atc/input.c @@ -1,4 +1,4 @@ -/* $NetBSD: input.c,v 1.7 1998/03/29 04:45:17 mrg Exp $ */ +/* $NetBSD: input.c,v 1.8 1998/07/28 02:46:13 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.7 1998/03/29 04:45:17 mrg Exp $"); +__RCSID("$NetBSD: input.c,v 1.8 1998/07/28 02:46:13 briggs Exp $"); #endif #endif not lint @@ -444,7 +444,7 @@ Right(c) char c; { p.new_dir = p.dir + 2; - if (p.new_dir > MAXDIR) + if (p.new_dir >= MAXDIR) p.new_dir -= MAXDIR; return (NULL); } |