Skip to content

Commit

Permalink
transfer selection from sectors to things in the map editor (#1608)
Browse files Browse the repository at this point in the history
  • Loading branch information
thezerobit authored Nov 25, 2023
1 parent 4bfae9a commit a5615af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/MapEditor/ItemSelection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,11 @@ void ItemSelection::migrate(Mode from_edit_mode, Mode to_edit_mode)
// To things mode
else if (to_edit_mode == Mode::Things)
{
// TODO this is much harder
for (auto& thing : context_->map().things())
{
if (sector->containsPoint(thing->position()))
new_selection.insert({ (int)thing->index(), ItemType::Thing });
}
}
}
}
Expand Down

0 comments on commit a5615af

Please sign in to comment.