missmatch Type

This commit is contained in:
dingo
2026-03-16 18:14:51 -04:00
parent cfee0bbccc
commit eb7a8e57b1
@@ -1283,8 +1283,8 @@ func _animate_unit_move(iid: String, from_coord: Vector2i, to_coord: Vector2i,
# Compute how far above the tile top this unit sits so we can preserve that
# offset as it moves across tiles of different stagger heights.
var from_key := "%d,%d" % [from_coord.x, from_coord.y]
var from_tile_top := _tile_y_bases.get(from_key, 0.0) + _tile_heights.get(from_key, 1.0)
var unit_above := body.position.y - from_tile_top
var from_tile_top : int = _tile_y_bases.get(from_key, 0.0) + _tile_heights.get(from_key, 1.0)
var unit_above : float = body.position.y - from_tile_top
# Pre-compute per-step Y positions.
var step_ys : Array[float] = []
for step : Vector2i in path: