1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-15 23:09: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)
{
for (const auto& status : dtStatuses)
if (value.mStatus & status.mStatus)
stream << status.mString;
bool first = true;
for (const auto& v : dtStatuses)
{
if ((value.mStatus & v.mStatus) == 0)
continue;
if (first)
first = false;
else
stream << " | ";
stream << v.mString;
}
return stream;
}