1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 07:44:38 +01:00

Merge pull request #1714 from janisozaur/news_item_fix

Play sound when message first appears, not later
This commit is contained in:
Ted John
2015-11-02 21:35:38 +00:00

View File

@@ -81,7 +81,7 @@ void news_item_init_queue()
static void news_item_tick_current()
{
int ticks;
ticks = news_item_get(0)->ticks++;
ticks = ++news_item_get(0)->ticks;
if (ticks == 1 && !(RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & 1)) {
// Play sound
sound_play_panned(SOUND_NEWS_ITEM, RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_WIDTH, uint16) / 2, 0, 0, 0);