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:
parent
b496469aed
commit
44ab5c33e1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29835
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user