Mercurial > hg > batmud > maputils
changeset 1473:ca272867a81b
Update to new th-libs (th_memset() removed)
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 25 May 2014 19:26:13 +0300 |
parents | fe72ebfed971 |
children | 351558c68100 |
files | colormap.c combine.c mkcitymap.c mkloc.c |
diffstat | 4 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/colormap.c Wed May 14 16:43:12 2014 +0300 +++ b/colormap.c Sun May 25 19:26:13 2014 +0300 @@ -696,8 +696,8 @@ } /* Initialize counters */ - th_memset(colChangesTo, 0, sizeof(colChangesTo)); - th_memset(colChangesFrom, 0, sizeof(colChangesFrom)); + memset(colChangesTo, 0, sizeof(colChangesTo)); + memset(colChangesFrom, 0, sizeof(colChangesFrom)); /* Read data, keeping statistics of colour change frequencies */
--- a/combine.c Wed May 14 16:43:12 2014 +0300 +++ b/combine.c Sun May 25 19:26:13 2014 +0300 @@ -321,7 +321,7 @@ */ if (optFillChar > 0) { - th_memset(worldMap->data, optFillChar, worldMap->size); + memset(worldMap->data, optFillChar, worldMap->size); }
--- a/mkcitymap.c Wed May 14 16:43:12 2014 +0300 +++ b/mkcitymap.c Sun May 25 19:26:13 2014 +0300 @@ -400,7 +400,7 @@ LocFileInfo locFile; MapLocations locations; - th_memset(&locations, 0, sizeof(locations)); + memset(&locations, 0, sizeof(locations)); th_init("mkcitymap", "ASCII citymap converter", "0.5", NULL, NULL); th_verbosityLevel = 0;
--- a/mkloc.c Wed May 14 16:43:12 2014 +0300 +++ b/mkloc.c Sun May 25 19:26:13 2014 +0300 @@ -1032,7 +1032,7 @@ MapLocations worldLoc; int i; - th_memset(&worldLoc, 0, sizeof(worldLoc)); + memset(&worldLoc, 0, sizeof(worldLoc)); /* Initialize */ th_init("mkloc", "Manipulate and convert location files and ASCII map data", "1.6", NULL, NULL);