InitialAltitude is now part of CenterPositition in Lua, too

followup of #4371
This commit is contained in:
Matthias Mailänder
2013-12-28 18:38:23 +01:00
parent d87810a29c
commit da8341e336
2 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ end
Rules.InitialAltitude = function(actorType)
local ai = Rules.TraitInfoOrDefault(actorType, "AircraftInfo")
if ai ~= nil then
return ai.CruiseAltitude
return ai.CruiseAltitude.Range
end
return 0
end