mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-26 09:53:48 +00:00
Fix rallypoint color after deserialization following 505a10cef6.
Differential Revision: https://code.wildfiregames.com/D826 Refs #4618, D623 This was SVN commit r20049.
This commit is contained in:
@@ -199,6 +199,7 @@ public:
|
||||
virtual void Deserialize(const CParamNode& paramNode, IDeserializer& UNUSED(deserialize))
|
||||
{
|
||||
Init(paramNode);
|
||||
// The dependent components have not been deserialized, so the color is loaded on first SetDisplayed
|
||||
}
|
||||
|
||||
virtual void HandleMessage(const CMessage& msg, bool UNUSED(global))
|
||||
@@ -316,6 +317,13 @@ public:
|
||||
{
|
||||
m_Displayed = displayed;
|
||||
|
||||
// Set color after all dependent components are deserialized
|
||||
if (displayed && m_LineColor.r < 0)
|
||||
{
|
||||
UpdateLineColor();
|
||||
ConstructAllOverlayLines();
|
||||
}
|
||||
|
||||
// move the markers out of oblivion and back into the real world, or vice-versa
|
||||
UpdateMarkers();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user