mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-11 13:42:38 +01:00
епта
This commit is contained in:
parent
e0e8e62618
commit
c3e12be07f
@ -283,6 +283,7 @@
|
||||
name="lib/advancedLua.lua",
|
||||
url="IgorTimofeev/OpenComputers/master/lib/advancedLua.lua",
|
||||
type="Library",
|
||||
preLoadFile=true,
|
||||
version=1.02,
|
||||
},
|
||||
{
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user