1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-19 09:39:42 +00:00

Write separator between Detour status flags

This commit is contained in:
elsid 2023-04-28 13:28:52 +02:00
parent b62b5f363e
commit ce5fbd6b68
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625

View file

@ -114,9 +114,17 @@ namespace DetourNavigator
std::ostream& operator<<(std::ostream& stream, const WriteDtStatus& value) std::ostream& operator<<(std::ostream& stream, const WriteDtStatus& value)
{ {
for (const auto& status : dtStatuses) bool first = true;
if (value.mStatus & status.mStatus) for (const auto& v : dtStatuses)
stream << status.mString; {
if ((value.mStatus & v.mStatus) == 0)
continue;
if (first)
first = false;
else
stream << " | ";
stream << v.mString;
}
return stream; return stream;
} }