Skip to content

Fix "music.restart" console command for tracks defined in UMAPINFO#812

Open
rfomin wants to merge 1 commit intokraflab:masterfrom
rfomin:restart_music
Open

Fix "music.restart" console command for tracks defined in UMAPINFO#812
rfomin wants to merge 1 commit intokraflab:masterfrom
rfomin:restart_music

Conversation

@rfomin
Copy link
Copy Markdown
Collaborator

@rfomin rfomin commented Nov 22, 2025

Fix #811

I'm not sure about this, it needs testing.


if (mus_playing == music)
return;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think we shouldnt remove this one. Might not affect anything, but it doesnt hurt.

In S_ChangeMusInfoMusic we already check if mus_playing has the same lumpnum, so it is safe to remove the return there.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think we shouldnt remove this one.
[...]
so it is safe to remove the return there.

He? 😉

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, so it's ok?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restarting UMAPINFO-defined music breaks it

3 participants