diff options
author | 3gg <3gg@shellblade.net> | 2025-07-17 16:27:28 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2025-07-17 16:27:28 -0700 |
commit | 18e0598ad1e664f7dfd0bb077a50ee45101a9ce8 (patch) | |
tree | c0262add91f0f3a2dcbe0362996c4e1d27064163 /src | |
parent | 129fbdadc3a8e7ec2971fab893259802498f228a (diff) |
Add some TODOs
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); |