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:
parent
b62b5f363e
commit
ce5fbd6b68
1 changed files with 11 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue