Optimizes GetPercentMapExplored by caching explored vertices per player, patch by scroogie, fixes #2012
Description
Description
Details
Details
- Auditors
elexis - Committed
ben Jul 20 2013, 2:50 AM - Parents
- rP13575: Pers corral and storehouse updates
- Branches
- Unknown
- Tags
Event Timeline
/ps/trunk/source/simulation2/components/CCmpRangeManager.cpp | ||
---|---|---|
563 | This LosIsOffWorld check prevents explored tiles outside of the world from being counted in the cache m_ExploredVertices for rejoined clients. | |
1117 | The absence of a LosIsOffWorld check here means that the tiles outside of the world that are (incorrectly) marked as explored here are added to the m_ExploredVertices cache. Hence rejoined clients have a smaller number of explored tiles than non-rejoined clients returned by GetPercentMapExplored if the initial territory of a player extends outside of the world (what it shouldn't do either), see also #4598. |