Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
should fix #7432
Browse files Browse the repository at this point in the history
  • Loading branch information
schwiti6190 committed Aug 24, 2021
1 parent 28fc397 commit ed4ac08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 3 additions & 2 deletions AIDriver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2194,8 +2194,9 @@ function AIDriver:isFuelLevelOk()
return false
elseif currentFuelPercentage < 20 then
self:setInfoText('FUEL_SHOULD')
elseif currentFuelPercentage < 99.99 then
-- self:setInfoText('FUEL_IS')
else
self:clearInfoText('FUEL_MUST')
self:clearInfoText('FUEL_SHOULD')
end
return true
end
Expand Down
8 changes: 2 additions & 6 deletions courseplay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -173,18 +173,14 @@ local function setVersionData()
end;

if courseplay.version then
local versionSplitStr = StringUtil.splitString('.', courseplay.version); -- split as strings
versionSplitStr[3] = versionSplitStr[3] or '0000';
courseplay.versionDisplayStr = string.format('v%s.%s\n.%s', versionSplitStr[1], versionSplitStr[2], versionSplitStr[3]); --multiline display string
courseplay.isDevVersion = tonumber(versionSplitStr[3]) > 0;
courseplay.versionDisplayStr = string.format("v%s",courseplay.version)
courseplay.isDevVersion = true
if courseplay.isDevVersion then
courseplay.versionDisplayStr = courseplay.versionDisplayStr .. '.dev';
end;
courseplay.versionFlt = tonumber(string.format('%s.%s%s', versionSplitStr[1], versionSplitStr[2], versionSplitStr[3]));
else
courseplay.version = ' [no version specified]';
courseplay.versionDisplayStr = 'no\nversion';
courseplay.versionFlt = 0.00000;
courseplay.isDevVersion = false;
end;
end;
Expand Down

0 comments on commit ed4ac08

Please sign in to comment.