diff options
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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"); |