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:
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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue