summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-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");