aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-28 17:50:08 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-28 17:50:08 +0200
commit8150a7002ef731780789a626b12e8d5319da9033 (patch)
tree4be6a308716ba969b6a2906b9a4ccc277f612ac4
parente73828c35017e552e71620c4fab9745c70f2751e (diff)
downloadhurrycurry-8150a7002ef731780789a626b12e8d5319da9033.tar
hurrycurry-8150a7002ef731780789a626b12e8d5319da9033.tar.bz2
hurrycurry-8150a7002ef731780789a626b12e8d5319da9033.tar.zst
fix #187; move opt before super because it uses that and invert condition
-rw-r--r--client/map/tiles/floor.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/map/tiles/floor.gd b/client/map/tiles/floor.gd
index 0c1032e4..dd51c928 100644
--- a/client/map/tiles/floor.gd
+++ b/client/map/tiles/floor.gd
@@ -19,9 +19,9 @@ extends Tile
var opt: bool
func _init(ctx: TileFactory.TileCC):
- super(ctx)
opt = ctx.floor_mesher != null
- if base_mesh: ctx.floor_mesher.add_tile(ctx.position)
+ super(ctx)
+ if not base_mesh: ctx.floor_mesher.add_tile(ctx.position)
func get_base_mesh():
if opt: return null