From d71dd1824b88151da0dfe3df89c6a25d8159cc45 Mon Sep 17 00:00:00 2001 From: Johxz Date: Fri, 1 Sep 2017 19:26:33 -0500 Subject: [PATCH] allows different waypoints --- .../worldEditor/gui/objectBuilderGui.ed.gui | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui b/Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui index 7b532067c4..e8b58ab6ee 100644 --- a/Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui +++ b/Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui @@ -1122,20 +1122,21 @@ function StaticShapeData::create(%data) function MissionMarkerData::create(%block) { - switch$(%block) + if(%block $= "SpawnSphereMarker") { - case "WayPointMarker": - %obj = new WayPoint() { - dataBlock = %block; - parentGroup = EWCreatorWindow.objectGroup; - }; - return(%obj); - case "SpawnSphereMarker": - %obj = new SpawnSphere() { - datablock = %block; - parentGroup = EWCreatorWindow.objectGroup; - }; - return(%obj); + %obj = new SpawnSphere() { + datablock = %block; + parentGroup = EWCreatorWindow.objectGroup; + }; + return(%obj); + } + else + { + %obj = new WayPoint() { + dataBlock = %block; + parentGroup = EWCreatorWindow.objectGroup; + }; + return(%obj); } return(-1);