summaryrefslogtreecommitdiff
path: root/src/tiled.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tiled.c')
-rw-r--r--src/tiled.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tiled.c b/src/tiled.c
index b679e3c..95d3950 100644
--- a/src/tiled.c
+++ b/src/tiled.c
@@ -6,7 +6,6 @@
#define SCREEN_W 1280
#define SCREEN_H 720
-
int main() {
InitWindow(SCREEN_W, SCREEN_H, "tiled");
@@ -14,7 +13,10 @@ int main() {
int atlasSize[2] = {0, 0};
Texture2D tilemap, atlas;
- loadTileMap("map.tiles", &tilemap, &atlas, atlasSize);
+
+ if (loadTileMap("map.tiles", &tilemap, &atlas, atlasSize)) {
+ return 1;
+ }
RenderTexture2D target = LoadRenderTexture(SCREEN_W, SCREEN_H);