Skip to content

Commit

Permalink
Fix "isWorking" flag. oops.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsage committed Jan 31, 2022
1 parent c9ffea7 commit ae5b8ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Binary file modified FS22_BetterAILights.zip
Binary file not shown.
7 changes: 6 additions & 1 deletion src/aiBetterLights.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

AIBetterLights = {};

function AIBetterLights:updateAILights(isWorking)
function AIBetterLights:updateAILights(superFunc, isWorking)
local spec = self.spec_lights

local isCombine = ( self.spec_combine ~= nil )
Expand All @@ -20,6 +20,11 @@ function AIBetterLights:updateAILights(isWorking)
if not g_currentMission.environment.isSunOn or g_currentMission.environment.weather:getIsRaining() then
local typeMask = spec.aiLightsTypesMask

-- Check to see if we are on a field. This may be nessesary for courseplay.
-- if self.getIsOnField ~= nil and self:getIsOnField() then
-- typeMask = spec.aiLightsTypesMaskWork
-- end

if isWorking then
typeMask = spec.aiLightsTypesMaskWork
end
Expand Down

0 comments on commit ae5b8ac

Please sign in to comment.