mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 16:24:35 +01:00
Only play message sound in normal playing mode, fixes #2125
This commit is contained in:
@@ -82,7 +82,8 @@ static void news_item_tick_current()
|
||||
{
|
||||
int ticks;
|
||||
ticks = ++news_item_get(0)->ticks;
|
||||
if (ticks == 1 && !(RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & 1)) {
|
||||
// Only play news item sound when in normal playing mode
|
||||
if (ticks == 1 && (RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) == SCREEN_FLAGS_PLAYING)) {
|
||||
// Play sound
|
||||
sound_play_panned(SOUND_NEWS_ITEM, RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_WIDTH, uint16) / 2, 0, 0, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user