aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 6b70536..59a1fc0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -132,7 +132,6 @@ error:
int main(int argc, char **argv)
{
- // SEED = 69;
SEED = time(0);
manage_arguments(argc, argv);
@@ -141,8 +140,8 @@ int main(int argc, char **argv)
printf("The Seed is %ld\n", SEED);
load_tiles();
- generate_tile_masks(get_tile_connections());
init_tilemap();
+ generate_tile_masks(get_tile_connections());
while(1) {
int lei;
@@ -173,6 +172,7 @@ int main(int argc, char **argv)
}
free_tiles();
+ destroy_tilemap();
char file_name[64] = {0};