Skip to content

Commit

Permalink
Fix emitted command events
Browse files Browse the repository at this point in the history
Fix the emitted command events for coalitions and group events
  • Loading branch information
rurounijones committed Mar 6, 2022
1 parent 1ea5ed7 commit 217efd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/DCS-gRPC/methods/mission.lua
Original file line number Diff line number Diff line change
Expand Up @@ -451,12 +451,12 @@ end
local function coalitionCommandCallback(params)
local event = {
type = "coalitionCommand",
coalition = params.coalition,
details = params.details,
}

GRPC.event({
time = timer.getTime(),
coalition = params.coalition,
event = event
})
end
Expand Down Expand Up @@ -487,12 +487,12 @@ end
local function groupCommandCallback(params)
local event = {
type = "groupCommand",
groupName = params.groupName,
details = params.details,
}

GRPC.event({
time = timer.getTime(),
groupName = params.groupName,
event = event
})
end
Expand All @@ -505,7 +505,7 @@ GRPC.methods.addGroupCommand = function(params)

return GRPC.success({
path = missionCommands.addCommandForGroup(group:getID(), params.name, params.path,
groupCommandCallback, params.details)
groupCommandCallback, params)
})
end

Expand Down

0 comments on commit 217efd4

Please sign in to comment.