1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-24 22:23:21 +00:00

Add .dat extension to all redirection levels

This commit is contained in:
Wilma456 2017-05-20 12:51:01 +02:00
parent d822147704
commit b31518cfb5
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