From 6c5a3fdaf2b9a7a49e72b7f95f68f77e6c1dea99 Mon Sep 17 00:00:00 2001 From: nosoop Date: Mon, 5 Dec 2022 04:14:54 -0800 Subject: [PATCH] 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. --- 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"; }