Skip to content

Commit

Permalink
Add auto-quit in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
gustafla committed Aug 1, 2023
1 parent 0fb1801 commit e32a73a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ int main(void) {
SDL_Log("Rocket disconnected\n");
running = 0;
}
#else
// Quit the demo when music ends
if (player_at_end(player)) {
running = 0;
}
#endif

// Render. This does draw calls.
Expand Down

0 comments on commit e32a73a

Please sign in to comment.