Skip to content

Commit 157d957

Browse files
committed
lint
1 parent 1d44b79 commit 157d957

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

[editor]/editor_main/client/gridlines.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,22 @@ local function renderGridlines()
3434
local camX,camY,camZ = getCameraMatrix()
3535
--Work out our line thickness
3636
local thickness = (100/getDistanceBetweenPoints3D(camX,camY,camZ,x,y,z)) * MAX_THICKNESS
37-
37+
3838
--Apply the adjustment for non-centered bounding box according to c++ implementaion
3939
--https://github.com/multitheftauto/mtasa-blue/blob/88d303c0bbcc0ed4fee958df2d16ace562ce0108/Client/mods/deathmatch/logic/CClientStreamElement.cpp#L224
40-
40+
4141
local halfCenterX = (minX + maxX) * 0.25
4242
local halfCenterY = (minY + maxY) * 0.25
4343
local halfCenterZ = (minZ + maxZ) * 0.25
44-
44+
4545
--subtracting half center
4646
minX = minX - halfCenterX
4747
minY = minY - halfCenterY
4848
minZ = minZ - halfCenterZ
4949
maxX = maxX - halfCenterX
5050
maxY = maxY - halfCenterY
5151
maxZ = maxZ - halfCenterZ
52-
52+
5353
--
5454
local elementMatrix = (getElementMatrix(attachedToElement) and not ignoreMatrix[getElementType(attachedToElement)])
5555
and matrix(getElementMatrix(attachedToElement))

0 commit comments

Comments
 (0)