Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions client/zoneCreator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -235,29 +235,29 @@ function zoneCreator.freecamMode(bool)
end
end

RegisterCommand('+usePoint', function()
local function usePoint()
if not zoneCreator.active then return end

if not zoneCreator.cursor then return end

if zoneCreator.deleteIndex then
zoneCreator.removePoint()
else
zoneCreator.addPoint(zoneCreator.cursor)
end
end, false)
end
RegisterCommand('+usePoint', usePoint, false)
RegisterCommand('-usePoint', usePoint, false)
RegisterKeyMapping('+usePoint', 'Add/Remove Point', 'keyboard', 'c')

RegisterCommand('+editPoint', function()
local function editPoint()
if not zoneCreator.active then return end
if not zoneCreator.cursor then return end


zoneCreator.editPoint()

end, false)

end
RegisterCommand('+editPoint', editPoint, false)
RegisterCommand('-editPoint', editPoint, false)
RegisterKeyMapping('+editPoint', 'edit Point', 'keyboard', 'k')
RegisterKeyMapping('+usePoint', 'Add/Remove Point', 'keyboard', 'c')

local function polyCreator()
zoneCreator.freecamMode(false)
Expand Down Expand Up @@ -363,4 +363,4 @@ end
return {
mloDoor = mloDoor,
polyCreator = polyCreator
}
}