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
This commit is contained in:
Oliver Brakmann
2014-10-11 13:39:31 +02:00
parent 080bbab514
commit 18b9f9a021
2 changed files with 2 additions and 2 deletions

View File

@@ -2337,7 +2337,7 @@ Weapons:
Nike:
Range: 9c0
Maverick:
Warhead: SpreadDamage
Warhead@1Dam: SpreadDamage
Damage: 175
Voices:

View File

@@ -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