1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

Add missing switch case, fix clang-tidy checks

This commit is contained in:
ζeh Matt
2024-02-22 23:58:59 +02:00
parent b2f14af84d
commit fd66cb5e1b
2 changed files with 5 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
---
Checks: >
*-,
-*,
cppcoreguidelines-macro-usage,
modernize-use-nullptr,
modernize-use-override

View File

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