From 3c2c6c491ecab307c4f83c315fd5260decc3268b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Sun, 14 Dec 2025 23:29:41 +0200 Subject: [PATCH] Only log top level game actions and filter ghost ones --- src/openrct2/actions/GameAction.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/openrct2/actions/GameAction.cpp b/src/openrct2/actions/GameAction.cpp index 3932532d1f..fc04e890d4 100644 --- a/src/openrct2/actions/GameAction.cpp +++ b/src/openrct2/actions/GameAction.cpp @@ -350,7 +350,10 @@ namespace OpenRCT2::GameActions } ActionLogContext logContext; - LogActionBegin(logContext, action); + if (topLevel && !flags.has(CommandFlag::ghost)) + { + LogActionBegin(logContext, action); + } // Execute the action, changing the game state result = action->Execute(gameState); @@ -362,8 +365,10 @@ namespace OpenRCT2::GameActions // Script hooks may now have changed the game action result... } #endif - - LogActionFinish(logContext, action, result); + if (topLevel && !flags.has(CommandFlag::ghost)) + { + LogActionFinish(logContext, action, result); + } // If not top level just give away the result. if (!topLevel)