Исправление. Устранение предупреждений

This commit is contained in:
sasha80
2025-08-22 09:02:55 +03:00
parent ab8604c51c
commit 116827041b

View File

@@ -288,7 +288,7 @@ func _draw() -> void:
visible_marks_count = 0
for dot in _marks.values():
var scr_pos: Vector2 = world_to_screen(dot.position)
scr_pos.x = posmod(scr_pos.x, dx)
scr_pos.x = posmod(int(scr_pos.x), int(dx))
dot.mark.position = scr_pos
dot.mark.visible = is_mark_visible(dot)
dot.mark.visible = c.distance_to(scr_pos) < (r - dot.gap_size)
@@ -432,7 +432,7 @@ func check_borders(p1, p2, h):
func _draw_tile(tx: int, ty: int, z: float) -> void:
var tz: float = floor(z)
var tz: = int(floor(z))
var p1: = tile_to_screen(tx, ty, z)
var p2: = tile_to_screen(tx + 1, ty + 1, z)
var tile: = get_tile(tx, ty, tz)
@@ -441,7 +441,7 @@ func _draw_tile(tx: int, ty: int, z: float) -> void:
check_borders(p1, p2, $canvas.size.y)
draw_texture_rect(tile.texture, Rect2(p1, p2 - p1), false, Color.WHITE, false)
else:
var zzz: float = tz
var zzz: = tz
var txx: = tx
var tyy: = ty
while zzz > 1: