aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2025-06-08 18:13:18 +0200
committertpart <tpart120@proton.me>2025-06-08 18:13:18 +0200
commitcadf5d400206ace4c41c8b7e1f08aa80b859f893 (patch)
tree264f2ff1819322b58fcd2bb6d9eda84eda6ce771 /client
parent544054658e4ec7cda694e902eebd7494baf448d5 (diff)
downloadhurrycurry-cadf5d400206ace4c41c8b7e1f08aa80b859f893.tar
hurrycurry-cadf5d400206ace4c41c8b7e1f08aa80b859f893.tar.bz2
hurrycurry-cadf5d400206ace4c41c8b7e1f08aa80b859f893.tar.zst
Fix marker color for item on floor
Diffstat (limited to 'client')
-rw-r--r--client/game.gd5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/game.gd b/client/game.gd
index c002cac2..ec6a2228 100644
--- a/client/game.gd
+++ b/client/game.gd
@@ -393,8 +393,9 @@ func get_tile_collision(pos: Vector2i) -> bool:
func get_tile_interactive(pos: Vector2i) -> bool:
var t = map.get_tile_name(pos)
if t == null: return false
- else: return tile_interact[tile_index_by_name[t]]
-
+ else:
+ if map.get_tile_instance(pos).item != null: return true
+ return tile_interact[tile_index_by_name[t]]
func update_center():
$FollowCamera.autozoom = spectating_mode == SpectatingMode.CENTER and join_state == JoinState.SPECTATING