aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-08-12 14:07:54 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-08-12 14:07:54 +0300
commitf0b443c37daa92d36ea752d837855a28b084dd3c (patch)
tree5c35efb32a07373d6c3d6cc523680d68fd24af02 /src/main.c
parent02a5f64db70b61ad41c59c17d70feefaba1f21a5 (diff)
most likely works with more than 63
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};