From 7a9da735e2d455f8245577ec3db76bccb478b93f Mon Sep 17 00:00:00 2001 From: Per Inge Mathisen Date: Sun, 8 Mar 2009 17:15:14 +0000 Subject: [PATCH] map2lnd: Fix bug in setting the number of objects in the exported map. git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6818 4a71c877-e1ca-e34f-864e-861f7616d084 --- tools/map/map2lnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/map/map2lnd.c b/tools/map/map2lnd.c index 51be53246..ab13664e6 100644 --- a/tools/map/map2lnd.c +++ b/tools/map/map2lnd.c @@ -162,7 +162,7 @@ int main(int argc, char **argv) MADD("ObjectList {"); MADD(" Version 3"); MADD(" FeatureSet %s", tilesetDataSet[map->tileset]); - MADD(" NumObjects %d", (int)map->numFeatures); + MADD(" NumObjects %u", map->numFeatures + map->numStructures + map->numDroids); MADD(" Objects {"); for (x = IMD_FEATURE; x < IMD_OBJECT; x++) {