summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-02-17 03:13:14 (EST)
committer P. J. McDermott <pjm@nac.net>2013-02-17 03:13:14 (EST)
commit3c09671866ff5131bcbb044b0df6326ff891fee6 (patch)
tree414b35520a2290d9facb769624947fc8611e05a6 /src/main.c
parentafaa1a637b8d139a556d3b1a0337f55a32d5e3b6 (diff)
downloadoverworld-rpg-3c09671866ff5131bcbb044b0df6326ff891fee6.zip
overworld-rpg-3c09671866ff5131bcbb044b0df6326ff891fee6.tar.gz
overworld-rpg-3c09671866ff5131bcbb044b0df6326ff891fee6.tar.bz2
Give each use of a tileset a unique firstgid.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 0727d5b..abf515e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -9,7 +9,7 @@ main(void)
{
struct map *map;
struct image *img;
- struct tileset *ts;
+ struct map_tileset *ts;
SDL_Rect imgrect, surfacerect;
init();
@@ -17,11 +17,13 @@ main(void)
map = map_get("data/forest1.simple.tmx");
debug("Map dimensions: %dx%d", map->width, map->height);
for (ts = map->tilesets_head; ts != NULL; ts = ts->next) {
- debug("Tilesheet name: %s", ts->name);
+ debug("Tileset name: %s", ts->tileset->name);
+ debug("Tileset firstgid: %d", ts->firstgid);
}
img = img_png_get("../forest-6-layer-test_ground.png");
img_png_free(img);
+ quit(0);
return 0;
img = img_png_get("../forest-6-layer-test_ground.png");
img = img_png_get("../forest-6-layer-test_ground.png");