1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 14:54:30 +01:00

Merge pull request #25651 from ZehMatt/reduce-logging

Fix #25229: Excessive game action logging
This commit is contained in:
Matt
2025-12-15 03:09:13 +02:00
committed by GitHub
2 changed files with 9 additions and 3 deletions

View File

@@ -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)