entitylump: Output separator as spaces instead of tabs (#1873)

On NMRiH and possibly other games that use the Maphacks system,
entries that are modified using that system are rendered with tab
characters stripped out - see CNMRiHMapHackManager::GetEntDataString.

That results in there being no separators at all between keys and
values, as Maphacks receives the serialized string from Entity Lump
Manager.

This commit changes the key / value separator character to use
spaces instead.

This discovery upsets me greatly.

Fixes #1833.
This commit is contained in:
nosoop
2022-12-05 13:14:54 +01:00
committed by GitHub
parent 02f188899e
commit 6c5a3fdaf2
+1 -1
View File
@@ -102,7 +102,7 @@ std::string EntityLumpManager::Dump() {
} }
stream << "{\n"; stream << "{\n";
for (const auto& pair : *entry) { for (const auto& pair : *entry) {
stream << '"' << pair.first << "\" \"" << pair.second << '"' << '\n'; stream << '"' << pair.first << "\" \"" << pair.second << '"' << '\n';
} }
stream << "}\n"; stream << "}\n";
} }