Commit Graph

3 Commits

Author SHA1 Message Date
nosoop
01fa02826f 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.
2022-12-06 20:43:46 +00:00
nosoop
e7c8c84d5d entitylump: Fix behavior of append (#1836)
This change ensures that the iterator values used by `std::distance`
is correct.  Having the emplace within leads to the possibility of
`m_Entities.begin()` being invalidated due to reallocations.
2022-11-25 19:55:43 +00:00
nosoop
3e14e93776 Add functions for working with entity lumps (#1673) 2022-11-25 19:55:43 +00:00