Skip to content

Commit

Permalink
Only attempt to play outro if user has videos to begin with
Browse files Browse the repository at this point in the history
  • Loading branch information
KJeff01 committed Aug 16, 2023
1 parent 5feefe2 commit 588bda8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/wzapi.cpp
Expand Up @@ -2378,8 +2378,11 @@ bool wzapi::gameOverMessage(WZAPI_PARAMS(bool gameWon, optional<bool> _showBackD
if (gameWon && showOutro)
{
showBackDrop = false;
seq_AddSeqToList("outro.ogg", nullptr, "outro.txa", false);
seq_StartNextFullScreenVideo();
if (seq_hasVideos())
{
seq_AddSeqToList("outro.ogg", nullptr, "outro.txa", false);
seq_StartNextFullScreenVideo();
}
}
else
{
Expand Down

0 comments on commit 588bda8

Please sign in to comment.