Skip to content

Commit 3393b76

Browse files
committed
Merge branch 'beta-testing' of https://github.com/Stephan-S/FS19_AutoDrive into beta-testing
2 parents 635e9ef + 99dd228 commit 3393b76

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

FS19_AutoDrive/scripts/Gui/EnterGroupNameGUI.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ end
2727

2828
function ADEnterGroupNameGui:onClickOk()
2929
ADEnterGroupNameGui:superClass().onClickOk(self)
30-
ADGraphManager:addGroup(self.textInputElement.text)
30+
if self.textInputElement.text ~= ADGraphManager.debugGroupName then
31+
-- do not allow user to create debug group
32+
ADGraphManager:addGroup(self.textInputElement.text)
33+
end
3134
self:onClickBack()
3235
end
3336

FS19_AutoDrive/scripts/Manager/GraphManager.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ function ADGraphManager:createMapMarker(markerId, markerName, sendEvent)
336336
end
337337

338338
function ADGraphManager:addGroup(groupName, sendEvent)
339-
if groupName:len() > 1 and self.groups[groupName] == nil and groupName ~= ADGraphManager.debugGroupName then
339+
if groupName:len() > 1 and self.groups[groupName] == nil then
340340
if sendEvent == nil or sendEvent == true then
341341
-- Propagating group creation all over the network
342342
AutoDriveGroupsEvent.sendEvent(groupName, AutoDriveGroupsEvent.TYPE_ADD)

0 commit comments

Comments
 (0)