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

Commit

Permalink
Merge pull request #6895 from Courseplay/#6763
Browse files Browse the repository at this point in the history
fixes a multiplayer bug(#6763)
  • Loading branch information
schwiti6190 authored Feb 23, 2021
2 parents caea0f8 + 71ee953 commit 6f1429a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FieldworkAIDriver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ end

--release the driver completely once entered
function FieldworkAIDriver:shouldDriverBeReleased()
if self.vehicle:getIsEntered() and self.shouldBeReleasedOnceEntered then
if (self.vehicle:getIsEntered() or self.vehicle:getIsControlled()) and self.shouldBeReleasedOnceEntered then
self.shouldBeReleasedOnceEntered = nil
--unitl there is leftover code in courseplay:stop() we need to use it
--setCourseplayFunc used as a way to call it on server and client
Expand Down

0 comments on commit 6f1429a

Please sign in to comment.