summaryrefslogtreecommitdiffstats
path: root/TrollTron.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TrollTron.cpp')
-rw-r--r--TrollTron.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/TrollTron.cpp b/TrollTron.cpp
index 80df411..becb7b3 100644
--- a/TrollTron.cpp
+++ b/TrollTron.cpp
@@ -2,6 +2,7 @@
#include <iostream>
#include "MainWindow.h"
+#include <time.h>
int main(int argc, char **argv) {
@@ -11,7 +12,7 @@ int main(int argc, char **argv) {
// This will define the size and position, in pixel, of the window, originally. It can be moved and resized.
mainWindow.create("Troll Tron", 100, 100, 320, 320);
- srand(time(NULL));
+ srand((unsigned) time(NULL));
// This will define the grid
Game game(200, 200, 3);