From e44fc66e0d565a1103e22723145d63fbecc876d9 Mon Sep 17 00:00:00 2001 From: nokoe Date: Tue, 25 Jun 2024 23:37:32 +0200 Subject: remove type where value can be null --- client/game.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client') 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]] -- cgit v1.2.3-70-g09d2