From a84f2586cb04ae9f596fe9598afab271a758c0ea Mon Sep 17 00:00:00 2001 From: DokaDoka Date: Sat, 1 Oct 2022 15:24:51 +1000 Subject: [PATCH] fix(client/zoneCreator): rotation output --- resource/zoneCreator/client.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/resource/zoneCreator/client.lua b/resource/zoneCreator/client.lua index 227bc63..39c81c3 100644 --- a/resource/zoneCreator/client.lua +++ b/resource/zoneCreator/client.lua @@ -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) @@ -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