summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2024-06-25 23:37:32 +0200
committernokoe <nokoe@mailbox.org>2024-06-25 23:39:19 +0200
commite44fc66e0d565a1103e22723145d63fbecc876d9 (patch)
treeacdb878dc27fd8d1bf9dee1a26841b3743706cdb
parent8bb065604fbd12b14a7605cfa265ebf38890f628 (diff)
downloadhurrycurry-e44fc66e0d565a1103e22723145d63fbecc876d9.tar
hurrycurry-e44fc66e0d565a1103e22723145d63fbecc876d9.tar.bz2
hurrycurry-e44fc66e0d565a1103e22723145d63fbecc876d9.tar.zst
remove type where value can be null
-rw-r--r--client/game.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/game.gd b/client/game.gd
index 4b90f00c..51b34544 100644
--- a/client/game.gd
+++ b/client/game.gd
@@ -144,12 +144,12 @@ func _process(delta):
marker.position = lerp(marker.position, marker_target, delta * 40.0)
func get_tile_collision(pos: Vector2i) -> bool:
- var t: Array = tile_by_pos.get(str(pos))
+ var t = tile_by_pos.get(str(pos))
if t == null: return false
else: return tile_collide[t[0]]
func get_tile_interactive(pos: Vector2i) -> bool:
- var t: Array = tile_by_pos.get(str(pos))
+ var t = tile_by_pos.get(str(pos))
if t == null: return false
else: return tile_interact[t[0]]