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:
parent
3828750ade
commit
60e9ce1b68
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user