From 546edc33b8c524d3133498fac8db9f407df42373 Mon Sep 17 00:00:00 2001 From: mshirt Date: Mon, 2 Jan 2017 17:33:33 -0600 Subject: [PATCH] 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. --- scripts/SaveLoad.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/SaveLoad.rb b/scripts/SaveLoad.rb index a761c3f..0f6f27e 100644 --- a/scripts/SaveLoad.rb +++ b/scripts/SaveLoad.rb @@ -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)