mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
Preventing saving if intro variable isn't set
This is to prevent the "[Niko feels uneasy.]" infinite loop that can occur if you somehow save in the INIT room.
This commit is contained in:
parent
505f4214c1
commit
546edc33b8
1 changed files with 3 additions and 0 deletions
|
|
@ -37,6 +37,9 @@ def fake_save
|
|||
end
|
||||
|
||||
def save
|
||||
if ($game_variables[3] == 0) #don't save if intro variable isn't set
|
||||
return
|
||||
end
|
||||
File.open(SAVE_FILE_NAME, 'wb') do |file|
|
||||
# Wrire frame count for measuring play time
|
||||
Marshal.dump(Graphics.frame_count, file)
|
||||
|
|
|
|||
Loading…
Reference in a new issue