diff options
author | nokoe <nokoe@mailbox.org> | 2025-04-07 02:09:57 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2025-04-07 02:09:57 +0200 |
commit | 48a7a20e0f1595cd6e46c8c5136863ed56d5ef2b (patch) | |
tree | 0c700cf46b285887d6c8e582d5c56ced954e77d6 /client/map | |
parent | 803645281ad11353bdbbd0ccf4683f203d9554fa (diff) | |
download | hurrycurry-48a7a20e0f1595cd6e46c8c5136863ed56d5ef2b.tar hurrycurry-48a7a20e0f1595cd6e46c8c5136863ed56d5ef2b.tar.bz2 hurrycurry-48a7a20e0f1595cd6e46c8c5136863ed56d5ef2b.tar.zst |
tram model
Diffstat (limited to 'client/map')
-rw-r--r-- | client/map/tiles/wall_tile.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/map/tiles/wall_tile.gd b/client/map/tiles/wall_tile.gd index f934e308..49364023 100644 --- a/client/map/tiles/wall_tile.gd +++ b/client/map/tiles/wall_tile.gd @@ -57,7 +57,7 @@ func _init(ctx: TileFactory.TileCC): if max_series == 1: facing = max_idx kind = WallKind.STRAIGHT - if !env.is_empty() and env.has(ctx.neighbors[(facing + 1) % 4]): + if not env.is_empty() and env.has(ctx.neighbors[(facing + 1) % 4]) or ctx.neighbors[(facing + 1) % 4] == null: facing = (facing + 2) % 4 elif max_series == 2: facing = max_idx |