summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-09-24 23:18:44 +0000
committerache <ache@FreeBSD.org>1997-09-24 23:18:44 +0000
commitee017c7e5d0a30a65f28679c30525ce96bb3a418 (patch)
tree8006f2df3f33bf0b3066a2ff47fe2501215b0449 /games
parent9cacac2173b58e200f71bd35ec985a27ea56591e (diff)
downloadFreeBSD-src-ee017c7e5d0a30a65f28679c30525ce96bb3a418.zip
FreeBSD-src-ee017c7e5d0a30a65f28679c30525ce96bb3a418.tar.gz
Fix turn right
Submitted by: "Klaus-J. Wolf" <Yanestra@t-online.de>
Diffstat (limited to 'games')
-rw-r--r--games/atc/input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/atc/input.c b/games/atc/input.c
index 2fd2ad3..e5418b7 100644
--- a/games/atc/input.c
+++ b/games/atc/input.c
@@ -413,7 +413,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);
}
@@ -431,7 +431,7 @@ char *
Right(c)
{
p.new_dir = p.dir + 2;
- if (p.new_dir > MAXDIR)
+ if (p.new_dir >= MAXDIR)
p.new_dir -= MAXDIR;
return (NULL);
}
OpenPOWER on IntegriCloud