CHORE: Removed redundant for loop
This commit is contained in:
1 parent
7ef5407684
commit
dfc381bd9b
2 files changed
+5
-13
No files matched your search
+3
-3
@@ -1,7 +1,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "engine.h"
|
||||
|
||||
@@ -24,8 +24,8 @@ main()
|
||||
|
||||
while (is_open(status, 64, &engine) && process_input(&engine.dir))
|
||||
{
|
||||
|
||||
if(equals(&engine.fruit, &engine.head)) {
|
||||
if (equals(&engine.fruit, &engine.head))
|
||||
{
|
||||
eat(&engine);
|
||||
}
|
||||
move(&engine);
|
||||
|
||||
Reference in new issue
Block a user