Skip to content

Commit

Permalink
fix(client/zoneCreator): rotation output
Browse files Browse the repository at this point in the history
  • Loading branch information
DokaDoka committed Oct 1, 2022
1 parent 60c4e4e commit a84f258
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions resource/zoneCreator/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ local function startCreator(arg)
if zoneType == 'poly' then
drawLines()
elseif zoneType == 'box' then
local rad = math.rad(heading)
local rad = math.rad(-heading)
local sinH = math.sin(rad)
local cosH = math.cos(rad)
local center = vec(xCoord, yCoord)
Expand Down Expand Up @@ -248,17 +248,17 @@ local function startCreator(arg)
change = true
zCoord -= steps[1][step]
elseif IsDisabledControlJustReleased(0, 38) then -- e
change = true
heading += steps[2][step]
if heading >= 360 then
heading -= 360
end
elseif IsDisabledControlJustReleased(0, 44) then -- q
change = true
heading -= steps[2][step]
if heading < 0 then
heading += 360
end
elseif IsDisabledControlJustReleased(0, 44) then -- q
change = true
heading += steps[2][step]
if heading >= 360 then
heading -= 360
end
elseif IsDisabledControlJustReleased(0, 47) then -- g
change = true
if displayMode == #displayModes then
Expand Down

0 comments on commit a84f258

Please sign in to comment.