diff options
author | kdx <kikoodx@paranoici.org> | 2024-01-23 16:27:03 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2024-01-23 16:27:03 +0100 |
commit | aee126336212aadad63290c69ca5a6a313510e49 (patch) | |
tree | b4ca18e1344285ec9aa9646d519ffb5b5f909bcc | |
parent | 988c12415ac8b1f99c8138c9c136602a2cd54f54 (diff) | |
download | tiled2c-aee126336212aadad63290c69ca5a6a313510e49.tar.gz |
bugfix!
-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"); |