1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-13 11:40:29 +00:00

Merge pull request #266 from Wilma456/leveldat

Add .dat extension to all redirection levels
This commit is contained in:
Daniel Ratcliffe 2017-05-20 11:57:26 +01:00 committed by GitHub
commit 6c85ca071f
14 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ local function loadLevel(nNum)
sLevelTitle = "Level "..nNum
if nNum == nil then return error("nNum == nil") end
local sDir = fs.getDir( shell.getRunningProgram() )
local sLevelD = sDir .. "/levels/" .. tostring(nNum)
local sLevelD = sDir .. "/levels/" .. tostring(nNum)..".dat"
if not ( fs.exists(sLevelD) or fs.isDir(sLevelD) ) then return error("Level Not Exists : "..sLevelD) end
fLevel = fs.open(sLevelD,"r")
local Line = 0