Skip to content

Commit 9abb6f6

Browse files
Fix typos and remove unused variable
1 parent a993231 commit 9abb6f6

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/Autoload/Palettes.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func select_palette(palette_name: String) -> void:
5151
if current_palette:
5252
project.project_current_palette_name = palette_name
5353
else:
54-
# Attemt to find the last used palette (select if it's a global palette)
54+
# Attempt to find the last used palette (select if it's a global palette)
5555
var last_active_palette: String = Global.config_cache.get_value(
5656
"data", "last_palette", DEFAULT_PALETTE_NAME
5757
)

src/UI/Canvas/TransformationHandles.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ func move_transform(pos: Vector2) -> void:
387387
var final_pos := pos
388388
if Tools.is_placing_tiles():
389389
# NOTE: we don't use offset here because the [param pos] is expected to already have
390-
# offseted coordinates.
390+
# offsetted coordinates.
391391
var grid_size := (Global.current_project.get_current_cel() as CelTileMap).get_tile_size()
392392
final_pos = Tools.snap_to_rectangular_grid_boundary(pos, grid_size, Vector2.ZERO)
393393
preview_transform = preview_transform.translated(final_pos)

src/UI/TilesPanel.gd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,6 @@ func _on_tile_button_popup_menu_index_pressed(index: int) -> void:
402402
project.undo_redo.commit_action()
403403
elif index == 3: # Duplicate tile
404404
var project = Global.current_project
405-
var tile_cel = Global.current_project.get_current_cel()
406405
var undo_data_tileset := current_tileset.serialize_undo_data()
407406
var tilemap_cels: Array[CelTileMap] = []
408407
var redo_data_tilemaps := {}

0 commit comments

Comments
 (0)