mirror of
https://github.com/huderlem/porymap.git
synced 2026-04-18 23:57:32 -05:00
Prevent heal locations from being duplicated
This commit is contained in:
parent
1b832929b2
commit
e518e2c554
|
|
@ -1893,6 +1893,7 @@ void Editor::duplicateSelectedEvents() {
|
|||
logWarn(QString("Skipping duplication, the map limit for events of type '%1' has been reached.").arg(eventType));
|
||||
continue;
|
||||
}
|
||||
if (eventType == EventType::HealLocation) continue;
|
||||
Event *duplicate = new Event(*original);
|
||||
map->addEvent(duplicate);
|
||||
DraggablePixmapItem *object = addMapEvent(duplicate);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user