From fd66cb5e1ba1ec891cc77b7d376194acb6b4c3cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Thu, 22 Feb 2024 23:58:59 +0200 Subject: [PATCH] Add missing switch case, fix clang-tidy checks --- .clang-tidy | 2 +- src/openrct2/peep/GuestPathfinding.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index 13d377ea81..20cc308454 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,6 +1,6 @@ --- Checks: > - *-, + -*, cppcoreguidelines-macro-usage, modernize-use-nullptr, modernize-use-override diff --git a/src/openrct2/peep/GuestPathfinding.cpp b/src/openrct2/peep/GuestPathfinding.cpp index e2863aed39..9e8bc5c883 100644 --- a/src/openrct2/peep/GuestPathfinding.cpp +++ b/src/openrct2/peep/GuestPathfinding.cpp @@ -115,6 +115,8 @@ namespace OpenRCT2::PathFinding return "LimitReached"; case PathSearchResult::Other: return "Other"; + case PathSearchResult::Loop: + return "Loop"; case PathSearchResult::Failed: return "Failed"; // The default case is omitted intentionally. @@ -1977,6 +1979,8 @@ namespace OpenRCT2::PathFinding case PathSearchResult::Wide: adjustedEdges &= ~(1 << chosenDirection); break; + default: + break; } } if (adjustedEdges != 0)