From 45512bbc85188e3adb4eda597d0d2fa5530de651 Mon Sep 17 00:00:00 2001 From: zlago Date: Mon, 30 Sep 2024 10:52:14 +0200 Subject: player animations --- utl/json2map/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utl/json2map') diff --git a/utl/json2map/main.c b/utl/json2map/main.c index b298626..684e0ed 100644 --- a/utl/json2map/main.c +++ b/utl/json2map/main.c @@ -72,7 +72,7 @@ struct tilemap_T make_tilemap(cJSON const *const layer, int const wangStart, int int d = (in.tilemap[x + (y + 1) * in.width] - wangStart) >> 4; int e = (in.tilemap[(x + 1) + (y + 1) * in.width] - wangStart) >> 4; int f = b == c && b == d && b == e; - if (f) { + if (f && ((a - wangStart) & 0x8)) { out.tilemap[x + y * out.width] = b + 0xf0; } else { out.tilemap[x + y * out.width] = 0; -- cgit 1.4.1-2-gfad0