1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00

Fix turn right

Submitted by: "Klaus-J. Wolf" <Yanestra@t-online.de>
This commit is contained in:
Andrey A. Chernov 1997-09-24 23:18:44 +00:00
parent b496469aed
commit 44ab5c33e1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29835

View File

@ -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);
}