diff --git a/source/simulation2/components/CCmpRangeManager.cpp b/source/simulation2/components/CCmpRangeManager.cpp
index 69245d1..00e65d5 100644
a
|
b
|
public:
|
421 | 421 | SerializeRepetitiveVector<SerializeU16_Unbounded>()(serialize, "dirty visibility", m_DirtyVisibility); |
422 | 422 | SerializeVector<SerializeU32_Unbounded>()(serialize, "modified entities", m_ModifiedEntities); |
423 | 423 | |
424 | | // We don't serialize m_Subdivision, m_LosPlayerCounts or m_LosTiles |
| 424 | // We don't serialize m_Subdivision or m_LosTiles |
425 | 425 | // since they can be recomputed from the entity data when deserializing; |
426 | 426 | // m_LosState must be serialized since it depends on the history of exploration |
427 | 427 | |
… |
… |
public:
|
433 | 433 | virtual void Serialize(ISerializer& serialize) |
434 | 434 | { |
435 | 435 | SerializeCommon(serialize); |
| 436 | |
| 437 | serialize.NumberU32_Unbounded("los player count", (u32)m_LosPlayerCounts.size()); |
| 438 | for (size_t i = 0; i < m_LosPlayerCounts.size();i++) |
| 439 | SerializeRepetitiveVector<SerializeU16_Unbounded>()(serialize, "los counts", m_LosPlayerCounts[i]); |
436 | 440 | } |
437 | 441 | |
438 | 442 | virtual void Deserialize(const CParamNode& paramNode, IDeserializer& deserialize) |
… |
… |
public:
|
445 | 449 | m_Deserializing = true; |
446 | 450 | ResetDerivedData(); |
447 | 451 | m_Deserializing = false; |
| 452 | |
| 453 | u32 losPlayers = 0; |
| 454 | deserialize.NumberU32_Unbounded("los player count", losPlayers); |
| 455 | m_LosPlayerCounts.resize(losPlayers); |
| 456 | for (size_t i = 0; i < m_LosPlayerCounts.size();i++) |
| 457 | SerializeRepetitiveVector<SerializeU16_Unbounded>()(deserialize, "los counts", m_LosPlayerCounts[i]); |
| 458 | |
448 | 459 | } |
449 | 460 | |
450 | 461 | virtual void HandleMessage(const CMessage& msg, bool UNUSED(global)) |