From dd370c390497c01b5e60959b0d8db6d511100a3e Mon Sep 17 00:00:00 2001 From: nosoop Date: Mon, 5 Dec 2022 00:35:12 -0800 Subject: [PATCH] entitylump: Output separator as spaces instead of tabs 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. --- core/logic/LumpManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/logic/LumpManager.cpp b/core/logic/LumpManager.cpp index 31649927..5d897e31 100644 --- a/core/logic/LumpManager.cpp +++ b/core/logic/LumpManager.cpp @@ -102,7 +102,7 @@ std::string EntityLumpManager::Dump() { } stream << "{\n"; for (const auto& pair : *entry) { - stream << '"' << pair.first << "\" \"" << pair.second << '"' << '\n'; + stream << '"' << pair.first << "\" \"" << pair.second << '"' << '\n'; } stream << "}\n"; }