mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-11 18:00:29 +00:00
Requested changes
This commit is contained in:
parent
756d297c85
commit
4c89364964
@ -62,7 +62,8 @@ function drawLine( startX, startY, endX, endY, nColour )
|
||||
return
|
||||
end
|
||||
|
||||
local minX, maxX, minY, maxY = math.min( startX, endX )
|
||||
local minX = math.min( startX, endX )
|
||||
local maxX, minY, maxY
|
||||
if minX == startX then
|
||||
minY = startY
|
||||
maxX = endX
|
||||
@ -122,7 +123,8 @@ function drawBox( startX, startY, endX, endY, nColour )
|
||||
return
|
||||
end
|
||||
|
||||
local minX, maxX, minY, maxY = math.min( startX, endX )
|
||||
local minX = math.min( startX, endX )
|
||||
local maxX, minY, maxY
|
||||
if minX == startX then
|
||||
minY = startY
|
||||
maxX = endX
|
||||
@ -166,7 +168,8 @@ function drawFilledBox( startX, startY, endX, endY, nColour )
|
||||
return
|
||||
end
|
||||
|
||||
local minX, maxX, minY, maxY = math.min( startX, endX )
|
||||
local minX = math.min( startX, endX )
|
||||
local maxX, minY, maxY
|
||||
if minX == startX then
|
||||
minY = startY
|
||||
maxX = endX
|
||||
|
@ -137,8 +137,6 @@ local function update( )
|
||||
end
|
||||
|
||||
local newHead = screen[newXPos][newYPos]
|
||||
-- term.setCursorPos(1,1);
|
||||
-- print( newHead.snake )
|
||||
if newHead.snake == true or newHead.wall == true then
|
||||
bRunning = false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user