Skip to content

on_loading_screen_dismissed is wrongly triggered when executing command vid_restart #650

Description

@nltp-ashes

When executing vid_restart, the callback on_loading_screen_dismissed is triggered.

This does not correspond to its description in gamedata/scripts/callbacks_gameobject.script :

-- Callback for when player dismisses loading screen after "Press Any Key to Continue" pressed
_G.OnLoadingScreenDismissed = function()
	SendScriptCallback("on_loading_screen_dismissed")
end

This means on_loading_screen_dismissed can be sent multiple times in a script's lifetime, something that is often unexpected by modders.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions