1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-07-01 01:23:30 +00:00

Merge pull request #305 from Wojbie/Redirection-fix

Fix to redirection game.
This commit is contained in:
Daniel Ratcliffe 2017-06-04 13:57:06 +01:00 committed by GitHub
commit 2cd4daa9ad

View File

@ -614,7 +614,7 @@ local function startG(LevelN)
elseif isExit == "retry" then
return LevelN
elseif fExit == "yes" then
if fs.exists( fs.getDir( shell.getRunningProgram() ) .. "/levels/" .. tostring(LevelN + 1) ) then
if fs.exists( fs.getDir( shell.getRunningProgram() ) .. "/levels/" .. tostring(LevelN + 1) .. ".dat" ) then
return LevelN + 1
else
return nil