File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,8 @@ function laser:update(dt)
129
129
local biggesti
130
130
131
131
for j = 1 , # rectcol , 2 do
132
- if objects [rectcol [j ]][rectcol [j + 1 ]].x > biggestx then
133
- biggestx = objects [rectcol [j ]][rectcol [j + 1 ]].x
132
+ if objects [rectcol [j ]][rectcol [j + 1 ]].x + objects [ rectcol [ j ]][ rectcol [ j + 1 ]]. width > biggestx then
133
+ biggestx = objects [rectcol [j ]][rectcol [j + 1 ]].x + objects [ rectcol [ j ]][ rectcol [ j + 1 ]]. width
134
134
biggesti = j
135
135
end
136
136
end
@@ -141,8 +141,8 @@ function laser:update(dt)
141
141
local biggesti
142
142
143
143
for j = 1 , # rectcol , 2 do
144
- if objects [rectcol [j ]][rectcol [j + 1 ]].y > biggesty then
145
- biggesty = objects [rectcol [j ]][rectcol [j + 1 ]].y
144
+ if objects [rectcol [j ]][rectcol [j + 1 ]].y + objects [ rectcol [ j ]][ rectcol [ j + 1 ]]. height > biggesty then
145
+ biggesty = objects [rectcol [j ]][rectcol [j + 1 ]].y + objects [ rectcol [ j ]][ rectcol [ j + 1 ]]. height
146
146
biggesti = j
147
147
end
148
148
end
You can’t perform that action at this time.
0 commit comments