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
|
|
@ -37,6 +37,9 @@ def fake_save
|
||||||
end
|
end
|
||||||
|
|
||||||
def save
|
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|
|
File.open(SAVE_FILE_NAME, 'wb') do |file|
|
||||||
# Wrire frame count for measuring play time
|
# Wrire frame count for measuring play time
|
||||||
Marshal.dump(Graphics.frame_count, file)
|
Marshal.dump(Graphics.frame_count, file)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue