Skip to content

Commit

Permalink
workaround: 1.5 patch
Browse files Browse the repository at this point in the history
Commented out the now missing aiSystem:getJobByIndex()
we don't need it for anything critical, just cosmetics.

#433
Peter Vaiko committed Jan 30, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 9790886 commit e7e834f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/gui/pages/CpCourseGeneratorFrame.lua
Original file line number Diff line number Diff line change
@@ -238,13 +238,16 @@ function CpCourseGeneratorFrame:update(dt)
if self.updateTime < g_time then
for i = 1, self.activeWorkerList:getItemCount() do
local element = self.activeWorkerList:getElementAtSectionIndex(1, i)
-- TODO getJobByIndex() does not exist anymore
--[[
if element ~= nil then
local job = g_currentMission.aiSystem:getJobByIndex(i)
if job ~= nil then
element:getAttribute("text"):setText(job:getDescription())
end
end
]]
end
self.updateTime = g_time + 1000
local vehicle = self.cpMenu:getCurrentVehicle()
@@ -1187,6 +1190,8 @@ function CpCourseGeneratorFrame:onClickList(list, section, index, listElement)
self.ingameMapBase:restoreDefaultFilter()
self:saveHotspotFilter()
elseif list == self.activeWorkerList then
-- TODO getJobByIndex() does not exist anymore
--[[
local job = g_currentMission.aiSystem:getJobByIndex(index)
if job ~= nil and not job.vehicleParameter then
local vehicle = job.vehicleParameter:getVehicle()
@@ -1195,6 +1200,7 @@ function CpCourseGeneratorFrame:onClickList(list, section, index, listElement)
self:showMapHotspot(hotspot)
end
end
]]
elseif list == self.contextButtonList then
listElement.onClickCallback(self)
elseif list == self.contextButtonCustomFieldList then

0 comments on commit e7e834f

Please sign in to comment.