diff options
author | kdx <kikoodx@paranoici.org> | 2023-12-24 22:14:09 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-12-24 22:14:09 +0100 |
commit | 7aeb1b5c602b1fbe4b6f3eb3c4dc974b15af745a (patch) | |
tree | d6d7b08f7b289f8797f13e44f0d372d65eb6623b | |
parent | ebde0a200e1db431170452fcadd247771d1f2664 (diff) | |
download | tiled2c-7aeb1b5c602b1fbe4b6f3eb3c4dc974b15af745a.tar.gz |
NULL is banned
-rw-r--r-- | src/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -40,11 +40,11 @@ process_layer(cJSON *json) cJSON *const parallaxx = cJSON_GetObjectItem(json, "parallaxx"); cJSON *const parallaxy = cJSON_GetObjectItem(json, "parallaxy"); - printf("{\"%s\",%c%s%c,'%c',%f,%d,%f,%f,", + printf("{\"%s\",%s%s%s,'%c',%f,%d,%f,%f,", name->valuestring, - class ? '"' : 'N', - class ? class->valuestring : "UL", - class ? '"' : 'L', + class ? "\"" : "", + class ? class->valuestring : "0", + class ? "\"" : "", type->valuestring[0], opacity->valuedouble, cJSON_IsTrue(visible), |