Skip to content

Commit

Permalink
make the replace tool capable of replacing with a selection instead o…
Browse files Browse the repository at this point in the history
…f just a single tile
  • Loading branch information
Narre committed Jul 15, 2023
1 parent def08c7 commit fa8f068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/overlay_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ EditorOverlayWidget::replace()
{
if (tilemap->get_tile_id(x, y) == replace_tile)
{
tilemap->change(x, y, m_editor.get_tiles()->pos(0, 0));
tilemap->change(x, y, m_editor.get_tiles()->pos(x % m_editor.get_tiles()->m_width, y % m_editor.get_tiles()->m_height));
}
}
}
Expand Down

0 comments on commit fa8f068

Please sign in to comment.