Skip to content

Commit

Permalink
Release 1.0.4.0
Browse files Browse the repository at this point in the history
Only hotfix for bug #320 . Potentially locks up the game if no unloading point is selected or the name of the point is somehow not existing.
  • Loading branch information
Stephan-S committed Aug 9, 2019
1 parent 2379c98 commit 788f7d7
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions FS19_AutoDrive/gui/enterTargetNameGUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ function adEnterTargetNameGui:onClickOk()
end;
end;
end;
end;


end;

self:onClickBack();
end;
Expand Down
2 changes: 1 addition & 1 deletion FS19_AutoDrive/modDesc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Créer, ajouter, modifier, supprimer vos routes ou points de destination à l'ai
]]>
</ru>
</description>
<version>1.0.3.9</version>
<version>1.0.4.0</version>
<multiplayer supported="true"/>
<iconFilename>store.dds</iconFilename>
<extraSourceFiles>
Expand Down
2 changes: 1 addition & 1 deletion FS19_AutoDrive/scripts/AutoDrive.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AutoDrive = {};
AutoDrive.Version = "1.0.3.8";
AutoDrive.Version = "1.0.4.0";
AutoDrive.config_changed = false;

AutoDrive.directory = g_currentModDirectory;
Expand Down
2 changes: 1 addition & 1 deletion FS19_AutoDrive/scripts/AutoDriveHud.lua
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ function AutoDriveHud:drawHud(vehicle)
renderText(adPosX, adPosY, adFontSize, g_i18n:getText("AD_new_marker") .. " " .. vehicle.ad.enteredMapMarkerString);
end;

if (vehicle.ad.mode == AutoDrive.MODE_PICKUPANDDELIVER or vehicle.ad.mode == AutoDrive.MODE_UNLOAD or vehicle.ad.mode == AutoDrive.MODE_LOAD) and (vehicle.ad.pullDownList.active == false or (vehicle.ad.pullDownList.start and vehicle.ad.pullDownList.downwards == false)) then
if vehicle.ad.nameOfSelectedTarget_Unload ~= nil and (vehicle.ad.mode == AutoDrive.MODE_PICKUPANDDELIVER or vehicle.ad.mode == AutoDrive.MODE_UNLOAD or vehicle.ad.mode == AutoDrive.MODE_LOAD) and (vehicle.ad.pullDownList.active == false or (vehicle.ad.pullDownList.start and vehicle.ad.pullDownList.downwards == false)) then
local adFontSize = AutoDrive.FONT_SCALE * uiScale;
local adPosX = self.posX + self.Background.destination.width;
local adPosY = self.Background.unloadOverlay.posY + (self.Background.unloadOverlay.height/2) - (adFontSize/2); --self.posY + 0.008 + (self.borderY + self.buttonHeight) * self.rowCurrent;
Expand Down
Binary file added releases/1.0.4.0/FS19_AutoDrive.zip
Binary file not shown.

0 comments on commit 788f7d7

Please sign in to comment.