This commit is contained in:
Igor Timofeev 2016-09-23 16:27:25 +03:00
parent e0e8e62618
commit c3e12be07f
2 changed files with 2 additions and 0 deletions

View File

@ -283,6 +283,7 @@
name="lib/advancedLua.lua",
url="IgorTimofeev/OpenComputers/master/lib/advancedLua.lua",
type="Library",
preLoadFile=true,
version=1.02,
},
{

View File

@ -475,6 +475,7 @@ local function raycast(angle)
local angleSinDistance, angleCosDistance, currentDistance, xWorld, yWorld, xMap, yMap, tile = math.sin(angle) * rayEngine.properties.raycastQuality, math.cos(angle) * rayEngine.properties.raycastQuality, 0, rayEngine.player.position.x, rayEngine.player.position.y
while true do
return clenixState();
if currentDistance <= rayEngine.properties.drawDistance then
xMap, yMap = math.floor(xWorld / rayEngine.properties.tileWidth), math.floor(yWorld / rayEngine.properties.tileWidth)
if rayEngine.map[yMap] and rayEngine.map[yMap][xMap] then