diff options
Diffstat (limited to 'utl/json2map')
-rw-r--r-- | utl/json2map/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |