mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
f32784395c
@ -1025,7 +1025,7 @@ function OPSZONE:Scan()
|
||||
if ZoneObject then
|
||||
|
||||
-- Object category.
|
||||
local ObjectCategory=ZoneObject:getCategory()
|
||||
local ObjectCategory=Object.getCategory(ZoneObject)
|
||||
|
||||
if ObjectCategory==Object.Category.UNIT and ZoneObject:isExist() and ZoneObject:isActive() then
|
||||
|
||||
|
||||
@ -2951,7 +2951,7 @@ function PLAYERTASKCONTROLLER:_AddTask(Target)
|
||||
task:HandleEvent(EVENTS.Shot)
|
||||
function task:OnEventShot(EventData)
|
||||
local data = EventData -- Core.Event#EVENTDATA EventData
|
||||
local wcat = data.Weapon:getCategory() -- cat 2 or 3
|
||||
local wcat = Object.getCategory(data.Weapon) -- cat 2 or 3
|
||||
local coord = data.IniUnit:GetCoordinate() or data.IniGroup:GetCoordinate()
|
||||
local vec2 = coord:GetVec2() or {x=0, y=0}
|
||||
local coal = data.IniCoalition
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user