Fix makefile targets. Remove unnecessary warnings.

This commit is contained in:
Tiehuis
2015-08-04 16:42:28 +12:00
parent dc9adea7b5
commit cd13ef000f
5 changed files with 38 additions and 19 deletions
+2
View File
@@ -1,3 +1,4 @@
#include <stdlib.h>
#include "ai.h"
#include "engine.h"
#include "gfx.h"
@@ -6,6 +7,7 @@ const char moves[] = {'w', 'a', 's', 'd'};
int ai_move(struct gamestate *g)
{
/* Ensure srand is called somewhere prior */
if (g->opts->interactive) gfx_sleep(50);
return moves[rand() % 4];
}