From 46035984dd2f493695d1d3156f9aa6d796ebc9c6 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 10 Feb 2024 20:53:03 -0800 Subject: Reword comments. --- filesystem/src/filesystem.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/filesystem/src/filesystem.c b/filesystem/src/filesystem.c index 5a8eeec..f6bb693 100644 --- a/filesystem/src/filesystem.c +++ b/filesystem/src/filesystem.c @@ -73,8 +73,7 @@ bool make_relative_path( return true; } - // Search for the last / in the tile map file path to get its parent - // directory. + // Search for the last / in the file path to get its parent directory. assert(filepath_len > 0); size_t tm_dir_len = 0; for (tm_dir_len = strlen(filepath) - 1; tm_dir_len > 0; --tm_dir_len) { @@ -84,7 +83,7 @@ bool make_relative_path( } tm_dir_len++; // Preserve the backslash. - // Copy the tile set file path where the parent dir ends. + // Copy the file path where the parent dir ends. // Make sure there is enough space in the output. if ((tm_dir_len + path_len + 1) >= relative_length) { return false; -- cgit v1.2.3