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

Fix to redirection game.

Was not testing for correct file type. Game ended after first lvl cause it was looking from wrong name of file.
This commit is contained in:
Wojbie 2017-06-04 14:51:49 +02:00
parent 3828750ade
commit 60e9ce1b68

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