fix: enable transition to ESCRoom even if esc_script is not set (#502)

This commit is contained in:
bolinfest
2022-02-24 07:35:32 -08:00
committed by GitHub
parent c98c8f6a43
commit 282ea24b7d

View File

@@ -267,7 +267,7 @@ func init_room(room: ESCRoom) -> void:
#
# - room: The ESCRoom to be initialized for use.
func _perform_script_events(room: ESCRoom):
if room.esc_script and escoria.event_manager.is_channel_free(escoria.event_manager.CHANNEL_FRONT) \
if escoria.event_manager.is_channel_free(escoria.event_manager.CHANNEL_FRONT) \
or (
not escoria.event_manager.is_channel_free(escoria.event_manager.CHANNEL_FRONT) and \
not escoria.event_manager.get_running_event(