From ae5b8acd5a50becb40fdb621c651bf90c7ab88ea Mon Sep 17 00:00:00 2001 From: "J.T. Sage" Date: Mon, 31 Jan 2022 16:35:14 -0500 Subject: [PATCH] Fix "isWorking" flag. oops. --- FS22_BetterAILights.zip | Bin 12354 -> 12437 bytes src/aiBetterLights.lua | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/FS22_BetterAILights.zip b/FS22_BetterAILights.zip index 2800a5912dbb9862fd675c01c15e1872f9ed77c4..7aec8fc3a213f2ad6abea8b1675729084fea877e 100644 GIT binary patch delta 664 zcmV;J0%!fgV3lDQP)h>@6aWAS2mniiKUC|}8bnY6003_Wkr*I5{TZ>8*?6jBOEFGLpP$DD7|W$lr0xZlSA#A(}UD-n^M;K7YG2oy_O(epT8` z=_P#J?^ufPUuQ`$Im-=pOiATTuHbFEX(4^EUq^7Pv4XU z>NQ~l;O48+Coa=}*>vIw6*B>*z!8?-%<>p@H2QIOJ`U7y>M1Dme zxqzNOW9Bn2u;U*l6)sR`%m!5)ep}imAz{MckgjTLe<^U$M=8z|;_f9fdF*P>z-A~3 zrZ8vUD@dLBE`mjWWdh1$t4=Bl=~GkSfg3}k z3sF9Etz=GDAve2HZY3!FGVY9w`q9f2?Z!MZE@_~C-(zi*C8-b0oZLuBX2^KG4z2~` z0+lR}Hvc}u_ykr_PY9&*Oy+3>+A9VLM{x`R_8B*jvkM#$BpQQ;=?f&JG*+cHSO|6r z8$P0_+^OV$ZROfgw0q&E;)2UzaG;&iy;qgH9d5v_z0TimxjVLhr@H1D?ohum%|;Ct zp{wIuY;s)50M6WIWS?89fMCoL52(@xHK%n%6c;TQELxs(#^cPP1wWy)CuUI0dcKzb2usbyV-hGvxt$ITzO-9Gy5MF6)<@C_ETapRRm;@TiLxQ?jnw;G{A zJ94wD&{KO@|9fBJzj>YbX2|HijqVy3UcY$M@E6O43Dq;|v*z?P%60Qr`hU#`Mo;J{ yJiGf1vn>KyEe=bAKUC|}8bnY6003_Wlawz|0f3X`FE{~LlO8Z02F))30000d`!=Eg delta 587 zcmV-R0<`^=VZvY-P)h>@6aWAS2mo0CKU5u_d{X@Z005i?kr*I0~^TIujCq>td9InL6L+`zYz8- zov_vKlTJPm7}H)Bk6)Ku6ZS${?8{ZX+&`ai-bG!U_D;JiQK(&;dkS2ja+uLjd{|AA zmBygr4LjQ)P2t)XHX3G){<0}KiXRmuFyEyxuS`I-YpPR!njwFz6Wo%uZe9thCo)wKBZC=KmQMi80B1c}?J3-0~H0pW`MzJgPR@j3dsVg%P6wZKe!TLZ|manTl z6s^MORkCMzWYb>I>3iQfT~DHCV4KHXwua+V#&9MsK!6`b>|lbO4(O8Opvhjy#bu)f z^G4@fP*!+$(FjxqKd6!{3;s zP4p9*vmy76s899768)1A58j(WczW{(P)h>@6aWCThXPV94p{&{R2`mtQvCq{0GtJr Z=PytJEt5DfH~|EcaWEbRdM^L~003~24#xlh diff --git a/src/aiBetterLights.lua b/src/aiBetterLights.lua index 6099d42..ad8aece 100644 --- a/src/aiBetterLights.lua +++ b/src/aiBetterLights.lua @@ -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 ) @@ -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