From 18e0598ad1e664f7dfd0bb077a50ee45101a9ce8 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Thu, 17 Jul 2025 16:27:28 -0700 Subject: Add some TODOs --- src/isogfx.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/isogfx.c') 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) { Ts_TileSet* tileset = read_file(ts_path_cwd); if (!tileset) { + // TODO: Log errors using the log library. goto cleanup; }; // Load tile data. const Ts_Tile* tile = &tileset->tiles[0]; for (uint16_t j = 0; j < tileset->num_tiles; ++j) { + // TODO: These checks should be library runtime errors. // Tile dimensions should be a multiple of the base tile size. assert((tile->width % map->base_tile_width) == 0); assert((tile->height % map->base_tile_height) == 0); -- cgit v1.2.3