Mercurial > hg > batmud > maputils
changeset 1731:b8c4dad080ce
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 12 Oct 2017 23:17:33 +0300 |
parents | fef101fb4583 |
children | 37dffe589891 |
files | mkcitymap.c |
diffstat | 1 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/mkcitymap.c Thu Oct 12 23:11:32 2017 +0300 +++ b/mkcitymap.c Thu Oct 12 23:17:33 2017 +0300 @@ -147,10 +147,8 @@ { (void) l; - /* Output HTML header */ muPrintHTMLhead(outFile, optMapTitle, TRUE); - /* Output CSS style information */ fprintf(outFile, " <script type=\"text/javascript\" src=\"tooltip.js\"></script>\n" " <style type=\"text/css\">\n" @@ -257,7 +255,6 @@ { int n, k, num; - /* Another table */ fprintf(outFile, "</pre>" "</div>\n" @@ -303,7 +300,8 @@ } for (n = 0; n < l->n; n++) - if (l->locations[n] != NULL) { + if (l->locations[n] != NULL) + { LocMarker *tmp = l->locations[n]; if (tmp->flags & LOCF_INVIS) continue; @@ -325,7 +323,6 @@ fprintf(outFile, "</div></div>\n"); } - /* XHTML document end tags */ fprintf(outFile, "</body>\n" "</html>\n" @@ -335,13 +332,12 @@ void outputMapHTML(FILE *outFile, MapBlock *map, MapLocations *l) { - unsigned char *d; int x, y, n, p = -1, c; BOOL span = FALSE; for (y = 0; y < map->height; y++) { - d = map->data + (map->scansize * y); + unsigned char *d = map->data + (map->scansize * y); for (x = 0; x < map->width; x++) { if ((n = locFindByCoords(l, x, y, TRUE)) >= 0)