1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Use clang-format 20 (#24861)

https://clang.llvm.org/docs/ClangFormatStyleOptions.html
This commit is contained in:
Michał Janiszewski
2025-07-31 11:01:48 +02:00
committed by GitHub
parent 616fdee571
commit f6292b4c13
30 changed files with 569 additions and 526 deletions

View File

@@ -741,8 +741,10 @@ static void ConsoleSetVariableAction(InteractiveConsole& console, std::string va
auto action = TAction(std::forward<TArgs>(args)...);
action.SetCallback([&console, var](const GameAction*, const GameActions::Result* res) {
if (res->Error != GameActions::Status::Ok)
console.WriteLineError(String::stdFormat(
"set %s command failed: %s - %s.", var.c_str(), res->GetErrorTitle().c_str(), res->GetErrorMessage().c_str()));
console.WriteLineError(
String::stdFormat(
"set %s command failed: %s - %s.", var.c_str(), res->GetErrorTitle().c_str(),
res->GetErrorMessage().c_str()));
else
console.Execute(String::stdFormat("get %s", var.c_str()));
console.EndAsyncExecution();
@@ -1618,8 +1620,9 @@ static void ConsoleCommandAddNewsItem([[maybe_unused]] InteractiveConsole& conso
console.WriteLine(" 9 (News::ItemType::graph)");
console.WriteLine(" 10 (News::ItemType::campaign)");
console.WriteLine("message is the message to display, wrapped in quotes for multiple words");
console.WriteLine("assoc is the associated id of ride/peep/tile/etc. If the selected ItemType doesn't need an assoc "
"(Null, Money, Award, Graph), you can leave this field blank");
console.WriteLine(
"assoc is the associated id of ride/peep/tile/etc. If the selected ItemType doesn't need an assoc "
"(Null, Money, Award, Graph), you can leave this field blank");
return;
}