Skip to content

Commit

Permalink
Fix for getCategory
Browse files Browse the repository at this point in the history
- Fix for DCS API change to getCategory()
  • Loading branch information
Penecruz committed Dec 12, 2023
1 parent db29d02 commit e727434
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed crash of concurrent Windows TTS synthesis ([#223](https://github.com/DCS-gRPC/rust-server/issues/223))
- Fixed file handler left open: Closing config file again after reading it in LUA
- Fixed the config value for `tts.defaultProvider` for Google Cloud to be lowercase `gcloud` (instead of `gCloud`)

- Fixed error with getCategory due to API changes in DCS ([#246](https://github.com/DCS-gRPC/rust-server/issues/246))
## [0.7.1] - 2023-01-08

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions lua/DCS-gRPC/methods/mission.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local function exporter(object)
return nil
end

local category = object:getCategory()
local category = Object.getCategory(object) -- change for DCS API fixes in getcategory()

if category == Object.Category.BASE or object.className_ == 'Airbase' then
-- carriers are of category unit, but are a Airbase class
Expand Down Expand Up @@ -35,7 +35,7 @@ local function typed_exporter(object)
end

local grpcTable = {}
local category = object:getCategory()
local category = Object.getCategory(object)

if category == Object.Category.BASE or object.className_ == 'Airbase' then
grpcTable.airbase = exporter(object)
Expand Down
2 changes: 1 addition & 1 deletion lua/DCS-gRPC/methods/unit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ GRPC.methods.getRadar = function(params)
})
end

local category = object:getCategory()
local category = Object.getCategory(object)-- change for DCS API fixes in getcategory()
local grpcTable = {}

if(category == Object.Category.UNIT) then
Expand Down

0 comments on commit e727434

Please sign in to comment.