diff options
| -rw-r--r-- | src/config.h | 9 | ||||
| -rw-r--r-- | src/tilemap.c | 11 | 
2 files changed, 5 insertions, 15 deletions
| diff --git a/src/config.h b/src/config.h index 36f43a6..19726d5 100644 --- a/src/config.h +++ b/src/config.h @@ -1,6 +1,6 @@  // comment this if you dont want to generate the tiles, but  // want to use the tileset defined in the TILESET_NAME directive -#define GENERATE_PPM_TILES +// #define GENERATE_PPM_TILES  #ifdef GENERATE_PPM_TILES      int generated_tile_colors[2][3] = { @@ -15,7 +15,7 @@  // name of the tileset, localated in files/tilesets directory  // must be defined only when GENERATE_PPM_TILES is not  // if both arent defined, only tiles.dat will be generated -// #define TILESET_NAME "knots" +#define TILESET_NAME "knots"  /* The TILES are @@ -40,6 +40,7 @@ need to put in the tiles_to_load array  // Array for which tiles to include the tiles.dat  int tiles_to_load[] = { -    0, -    1, +    2, +    3, +    4,  }; diff --git a/src/tilemap.c b/src/tilemap.c index 661671c..a09ec0b 100644 --- a/src/tilemap.c +++ b/src/tilemap.c @@ -34,8 +34,6 @@ int is_set(int t, int n)  void init_tilemap()  {      tsz = (TILES/BIG_SZ) + 1; -    #include <stdio.h> -    printf("tsz %ld\n", tsz);      tilemap = malloc(sizeof(big_t[tsz][TILEMAP_CAP]));      for(size_t i = 0; i < tsz; i++) @@ -123,15 +121,6 @@ void generate_tile_masks(small_t* tile_connections)          }      } - -    for(size_t t = 0; t < tsz; t++) -        for(size_t i = 0; i < TILES; i++) { -            for(int n = 0; n < 4; n++) -                printf("%9b ", tile_masks[t][i][n]); -            putchar('\n'); -        } - -      free(wt_con);      free(no_con);  } | 
