Mercurial > hg > batmud > maputils
changeset 2536:a23fba3fa943
Comment cosmetics unification.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 26 Dec 2023 02:35:07 +0200 |
parents | 52d1a0ff9c77 |
children | e96e757ab01e |
files | src/combine.c src/diffmap.c src/map2ppm.c src/stitchmap.c |
diffstat | 4 files changed, 7 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/src/combine.c Tue Dec 26 02:32:47 2023 +0200 +++ b/src/combine.c Tue Dec 26 02:35:07 2023 +0200 @@ -246,8 +246,7 @@ } - /* Read map files - */ + // Read map files for (i = 0; i < nsrcFiles; i++) { MapFile *file = &srcFiles[i]; @@ -320,16 +319,14 @@ } - /* Clear with some character, if requested - */ + // Clear with some character, if requested if (optFillChar > 0) { memset(worldMap->data, optFillChar, worldMap->size); } - /* Blit map blocks - */ + // Blit map blocks for (i = 0; i < nsrcFiles; i++) { MapFile *file = &srcFiles[i]; @@ -342,8 +339,7 @@ } - /* Output generated map - */ + // Output generated map if (worldMap != NULL) {
--- a/src/diffmap.c Tue Dec 26 02:32:47 2023 +0200 +++ b/src/diffmap.c Tue Dec 26 02:35:07 2023 +0200 @@ -246,7 +246,6 @@ fprintf(outFile, DIFF_MAGIC "%d\n", DIFF_VERSION); mapBlockPrintRaw(outFile, resMap); - } else {
--- a/src/map2ppm.c Tue Dec 26 02:32:47 2023 +0200 +++ b/src/map2ppm.c Tue Dec 26 02:35:07 2023 +0200 @@ -336,7 +336,7 @@ png_write_end(png_ptr, NULL); - // Dellocate shit + // Deallocate structures if (png_ptr && info_ptr) png_destroy_write_struct(&png_ptr, &info_ptr);
--- a/src/stitchmap.c Tue Dec 26 02:32:47 2023 +0200 +++ b/src/stitchmap.c Tue Dec 26 02:35:07 2023 +0200 @@ -460,8 +460,7 @@ } } - /* Read in continuous mapdata and parse it into map blocks - */ + // Read in continuous mapdata and parse it into map blocks for (nmapBlocks = i = 0; i < nsrcFiles; i++) { FILE *tmpFile = NULL; @@ -674,8 +673,7 @@ THPRINT(2, "\n"); } - /* Output generated map - */ + // Output generated map if (worldMap) { int unusedBlocks;