summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2024-01-23 16:27:03 +0100
committerkdx <kikoodx@paranoici.org>2024-01-23 16:27:03 +0100
commitaee126336212aadad63290c69ca5a6a313510e49 (patch)
treeb4ca18e1344285ec9aa9646d519ffb5b5f909bcc
parent988c12415ac8b1f99c8138c9c136602a2cd54f54 (diff)
downloadtiled2c-aee126336212aadad63290c69ca5a6a313510e49.tar.gz
bugfix!
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index c5accb1..185107a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -247,9 +247,11 @@ process_tile(cJSON *json)
fprintf(stderr, "animation is no array\n");
return -1;
}
- printf("{%d,\"%s\",%f,",
+ printf("{%d,%s%s%s,%f,",
id->valueint,
+ (type != NULL) ? "\"" : "",
(type != NULL) ? type->valuestring : "0",
+ (type != NULL) ? "\"" : "",
(proba != NULL) ? proba->valuedouble : 0.0);
if (anim == NULL)
printf("0,0");