1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-08 18:44:04 +08:00
Files
osu-lazer/osu.Game.Tests/Visual
T
Jul ff820f730e Fix play button starting wrong beatmap before selection loads (#36104)
* Fix play button starting wrong beatmap before selection loads

When clicking the osu! cookie (play button) before a newly selected beatmap finishes loading, the previous beatmap would be played instead of the currently selected one. 

This was caused by the cookie reading from the global beatmap state which is debounced by 150ms, while the Enter key correctly used the carousel's current selection.

The fix makes the cookie use the same beatmap source as Enter - the carousel's current selection - which is always up-to-date regardless of debounce timing.

Closes #36074

* Use ensureGlobalBeatmapValid() for logo and Enter key actions

* Add test for beatmap selection timing bug

Tests the fix for issue #36074 where clicking the play button immediately after selecting a different difficulty would start the wrong beatmap due to the 150ms selection debounce.
ff820f730e · 2026-01-05 14:54:25 +09:00
History
..
2025-11-25 18:48:03 +09:00
2025-05-21 19:01:47 +03:00
2026-01-01 19:41:14 +09:00
2025-12-29 17:29:21 +09:00
2025-11-27 09:37:40 +01:00