CHORE: Removed redundant for loop
This commit is contained in:
+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