From b52dc2d9333463e26d3aba822eb9453014e28252 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Mon, 17 Aug 2026 20:23:58 +0200 Subject: [PATCH] Rename INTENT_ACTION_UPDATE_NEWS_TICKER --- src/openrct2-ui/WindowManager.cpp | 2 +- src/openrct2/management/NewsItem.cpp | 8 ++++---- src/openrct2/windows/Intent.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/openrct2-ui/WindowManager.cpp b/src/openrct2-ui/WindowManager.cpp index 7a800e5d19..1583de6857 100644 --- a/src/openrct2-ui/WindowManager.cpp +++ b/src/openrct2-ui/WindowManager.cpp @@ -470,7 +470,7 @@ public: WindowSceneryResetSelectedSceneryItems(); break; - case INTENT_ACTION_INVALIDATE_TICKER_NEWS: + case INTENT_ACTION_UPDATE_NEWS_TICKER: WindowGameBottomToolbarInvalidateNewsItem(); break; diff --git a/src/openrct2/management/NewsItem.cpp b/src/openrct2/management/NewsItem.cpp index b4f3357e4b..507fb06cfb 100644 --- a/src/openrct2/management/NewsItem.cpp +++ b/src/openrct2/management/NewsItem.cpp @@ -116,7 +116,7 @@ void News::InitQueue(GameState_t& gameState) warningThrottle = 0; } - auto intent = Intent(INTENT_ACTION_INVALIDATE_TICKER_NEWS); + auto intent = Intent(INTENT_ACTION_UPDATE_NEWS_TICKER); ContextBroadcastIntent(&intent); } @@ -163,7 +163,7 @@ void News::UpdateCurrentItem() if (gameState.newsItems.isEmpty()) return; - auto intent = Intent(INTENT_ACTION_INVALIDATE_TICKER_NEWS); + auto intent = Intent(INTENT_ACTION_UPDATE_NEWS_TICKER); ContextBroadcastIntent(&intent); // Update the current news item @@ -199,7 +199,7 @@ void News::ItemQueues::archiveCurrent() _recent.pop_front(); // Invalidate current news item bar - auto intent = Intent(INTENT_ACTION_INVALIDATE_TICKER_NEWS); + auto intent = Intent(INTENT_ACTION_UPDATE_NEWS_TICKER); ContextBroadcastIntent(&intent); } @@ -447,7 +447,7 @@ void News::DisableNewsItems(ItemType type, uint32_t assoc) newsItem.setFlags(ItemFlags::hasButton); if (&newsItem == &gameState.newsItems.current()) { - auto intent = Intent(INTENT_ACTION_INVALIDATE_TICKER_NEWS); + auto intent = Intent(INTENT_ACTION_UPDATE_NEWS_TICKER); ContextBroadcastIntent(&intent); } } diff --git a/src/openrct2/windows/Intent.h b/src/openrct2/windows/Intent.h index ab61be5745..352b34a18f 100644 --- a/src/openrct2/windows/Intent.h +++ b/src/openrct2/windows/Intent.h @@ -33,7 +33,7 @@ namespace OpenRCT2 INTENT_ACTION_INIT_SCENERY, INTENT_ACTION_SET_DEFAULT_SCENERY_CONFIG, INTENT_ACTION_REFRESH_SCENERY, - INTENT_ACTION_INVALIDATE_TICKER_NEWS, + INTENT_ACTION_UPDATE_NEWS_TICKER, INTENT_ACTION_REFRESH_GUEST_LIST, INTENT_ACTION_CLEAR_TILE_INSPECTOR_CLIPBOARD, INTENT_ACTION_REFRESH_STAFF_LIST,