project_files/frontlib/model/map.h
changeset 7316 f7b49b2c5d84
parent 7314 6171f0bad318
child 7482 d70a5b0d1190
--- a/project_files/frontlib/model/map.h	Wed Jun 27 22:52:19 2012 +0200
+++ b/project_files/frontlib/model/map.h	Thu Jul 05 00:33:24 2012 +0200
@@ -20,6 +20,7 @@
 #ifndef MODEL_MAP_H_
 #define MODEL_MAP_H_
 
+#include <stddef.h>
 #include <stdint.h>
 #include <stdbool.h>
 
@@ -57,7 +58,7 @@
 	char *seed;				// Used for all maps
 	char *theme;			// Used for all maps
 	uint8_t *drawData;		// Used for MAPGEN_DRAWN
-	int drawDataSize;		// Used for MAPGEN_DRAWN
+	int drawDataSize;		// Used for MAPGEN_DRAWN TODO size_t
 	int templateFilter;		// Used for MAPGEN_REGULAR
 	int mazeSize;			// Used for MAPGEN_MAZE
 } flib_map;
@@ -99,7 +100,7 @@
  * Create a hand-drawn map. Use flib_map_destroy to free the returned object.
  * No NULL parameters allowed, returns NULL on failure.
  */
-flib_map *flib_map_create_drawn(const char *seed, const char *theme, const uint8_t *drawData, int drawDataSize);
+flib_map *flib_map_create_drawn(const char *seed, const char *theme, const uint8_t *drawData, size_t drawDataSize);
 
 /**
  * Create a deep copy of the map. Returns NULL on failure or if NULL was passed.