mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-30 11:56:37 -05:00
Optimize displayMapEvents()
This commit is contained in:
@@ -31,6 +31,7 @@ Event* Event::createNewEvent(QString event_type, QString map_name, Project *proj
|
||||
Event *event = new Event;
|
||||
if (event_type == EventType::Object) {
|
||||
event = createNewObjectEvent(project);
|
||||
event->setFrameFromMovement(event->get("movement_type"));
|
||||
} else if (event_type == EventType::Warp) {
|
||||
event = createNewWarpEvent(map_name);
|
||||
} else if (event_type == EventType::HealLocation) {
|
||||
|
||||
Reference in New Issue
Block a user