change code feature that old compilers don't suport

0.9.1.0-post-fixes
UbitUmarov 2018-11-26 01:29:25 +00:00
parent be2c0aa552
commit dc9f0d3627
1 changed files with 6 additions and 3 deletions

View File

@ -6341,7 +6341,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
m_thisAgentUpdateArgs.lastpacketSequence = seq;
OnPreAgentUpdate?.Invoke(this, m_thisAgentUpdateArgs);
if (OnPreAgentUpdate != null)
OnPreAgentUpdate(this, m_thisAgentUpdateArgs);
bool movement;
bool camera;
@ -6370,7 +6371,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
m_thisAgentUpdateArgs.NeedsCameraCollision = !camera;
OnAgentUpdate?.Invoke(this, m_thisAgentUpdateArgs);
if (OnAgentUpdate != null)
OnAgentUpdate(this, m_thisAgentUpdateArgs);
}
// Was there a significant camera(s) change?
@ -6383,7 +6385,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
m_thisAgentUpdateArgs.NeedsCameraCollision = true;
OnAgentCameraUpdate?.Invoke(this, m_thisAgentUpdateArgs);
if (OnAgentCameraUpdate != null)
OnAgentCameraUpdate(this, m_thisAgentUpdateArgs);
}
if(movement && camera)