diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/isogfx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/isogfx.c b/src/isogfx.c index 53a6650..4dff67b 100644 --- a/src/isogfx.c +++ b/src/isogfx.c | |||
@@ -338,12 +338,14 @@ bool isogfx_load_world(IsoGfx* iso, const char* filepath) { | |||
338 | 338 | ||
339 | Ts_TileSet* tileset = read_file(ts_path_cwd); | 339 | Ts_TileSet* tileset = read_file(ts_path_cwd); |
340 | if (!tileset) { | 340 | if (!tileset) { |
341 | // TODO: Log errors using the log library. | ||
341 | goto cleanup; | 342 | goto cleanup; |
342 | }; | 343 | }; |
343 | 344 | ||
344 | // Load tile data. | 345 | // Load tile data. |
345 | const Ts_Tile* tile = &tileset->tiles[0]; | 346 | const Ts_Tile* tile = &tileset->tiles[0]; |
346 | for (uint16_t j = 0; j < tileset->num_tiles; ++j) { | 347 | for (uint16_t j = 0; j < tileset->num_tiles; ++j) { |
348 | // TODO: These checks should be library runtime errors. | ||
347 | // Tile dimensions should be a multiple of the base tile size. | 349 | // Tile dimensions should be a multiple of the base tile size. |
348 | assert((tile->width % map->base_tile_width) == 0); | 350 | assert((tile->width % map->base_tile_width) == 0); |
349 | assert((tile->height % map->base_tile_height) == 0); | 351 | assert((tile->height % map->base_tile_height) == 0); |