From 6fdc1973e439f24ec9acd9fc0e42b758df6f916b Mon Sep 17 00:00:00 2001 From: DokaDoka Date: Tue, 20 Sep 2022 23:31:35 +1000 Subject: [PATCH] fix(client/zoneCreator): box zone length and width --- resource/zoneCreator/client.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resource/zoneCreator/client.lua b/resource/zoneCreator/client.lua index 9e0e20e..227bc63 100644 --- a/resource/zoneCreator/client.lua +++ b/resource/zoneCreator/client.lua @@ -177,10 +177,10 @@ local function startCreator(arg) local center = vec(xCoord, yCoord) ---@type vector2[] points = { - center + vec((width * cosH + length * sinH), (length * cosH - width * sinH)), - center + vec(-(width * cosH - length * sinH), (length * cosH + width * sinH)), - center + vec(-(width * cosH + length * sinH), -(length * cosH - width * sinH)), - center + vec((width * cosH - length * sinH), -(length * cosH + width * sinH)), + center + vec((width * cosH + length * sinH), (length * cosH - width * sinH)) / 2, + center + vec(-(width * cosH - length * sinH), (length * cosH + width * sinH)) / 2, + center + vec(-(width * cosH + length * sinH), -(length * cosH - width * sinH)) / 2, + center + vec((width * cosH - length * sinH), -(length * cosH + width * sinH)) / 2, } drawLines()