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:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
Checks: >
|
||||
*-,
|
||||
-*,
|
||||
cppcoreguidelines-macro-usage,
|
||||
modernize-use-nullptr,
|
||||
modernize-use-override
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user