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:
mshirt 2017-01-02 17:33:33 -06:00
parent 505f4214c1
commit 546edc33b8

View file

@ -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)