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

This commit is contained in:
bolinfest authored and GitHub committed 2022-02-24 16:35:32 +01:00
1 parent c98c8f6a43
commit 282ea24b7d
1 file changed
+1 -1
@@ -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(