From 18b9f9a021944b9a6aaf59f1119ae7a4d502ccf0 Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Sat, 11 Oct 2014 13:39:31 +0200 Subject: [PATCH] Fix old Lua breakage Works around a problem in the old Lua API where a trait lookup would not find the correct class and make the script crash. In this instance, `Game.modData.ObjectCreator.FindType("RallyPoint")` return `OpenRA.Mods.Common.Effects.RallyPoint` instead of the expected `OpenRA.Mods.Common.RallyPoint`. The other change is an oversight from the recent warhead rewrites. Fixes #6728 --- mods/ra/maps/intervention/map.yaml | 2 +- mods/ra/maps/intervention/mission.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ra/maps/intervention/map.yaml b/mods/ra/maps/intervention/map.yaml index 1a8b95c1c1..ad25152299 100644 --- a/mods/ra/maps/intervention/map.yaml +++ b/mods/ra/maps/intervention/map.yaml @@ -2337,7 +2337,7 @@ Weapons: Nike: Range: 9c0 Maverick: - Warhead: SpreadDamage + Warhead@1Dam: SpreadDamage Damage: 175 Voices: diff --git a/mods/ra/maps/intervention/mission.lua b/mods/ra/maps/intervention/mission.lua index 36aef85741..d23a0531cb 100644 --- a/mods/ra/maps/intervention/mission.lua +++ b/mods/ra/maps/intervention/mission.lua @@ -194,7 +194,7 @@ SetupWorld = function() end end) - Production.SetRallyPoint(WarFactory, Rallypoint) +-- Production.SetRallyPoint(WarFactory, Rallypoint) Production.EventHandlers.Setup(soviets) -- RunAfterDelay is used so that the 'Building captured' and 'Mission accomplished' sounds don't play at the same time