Back compat for no tunings saved replay.

pull/58/head
Tetro48 2022-03-05 10:18:07 +07:00
parent 9d315d9763
commit eb163ea0c1
1 changed files with 4 additions and 3 deletions

View File

@ -6,9 +6,10 @@ ReplayScene.title = "Replay"
function ReplayScene:new(replay, game_mode, ruleset)
config.gamesettings = replay["gamesettings"]
config.das = replay["delayed_auto_shift"]
config.arr = replay["auto_repeat_rate"]
config.dcd = replay["das_cut_delay"]
if replay["delayed_auto_shift"] then config.das = replay["delayed_auto_shift"] end
if replay["auto_repeat_rate"] then config.arr = replay["auto_repeat_rate"] end
if replay["das_cut_delay"] then config.dcd = replay["das_cut_delay"] end
love.math.setRandomSeed(replay["random_low"], replay["random_high"])
love.math.setRandomState(replay["random_state"])
self.retry_replay = replay