mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-09 08:21:10 +00:00
# CSimulation cleanup and optimization (1)
moved some fields (e.g. size of health bar) out of CEntity and into BaseEntity so they can be shared between entities (instead of duplicated in each). TODO: is it ok to remove AddProperty for those properties in CEntity? (BaseEntity is still adding them) This was SVN commit r4078.
This commit is contained in:
@@ -143,8 +143,9 @@ uint CEntity::processGotoHelper( CEntityOrder* current, size_t timestep_millis,
|
||||
while( targetXZ.y > PI ) targetXZ.y -= 2 * PI;
|
||||
while( targetXZ.y < -PI ) targetXZ.y += 2 * PI;
|
||||
|
||||
m_orientation.X = clamp( targetXZ.x, -m_anchorConformX, m_anchorConformX );
|
||||
m_orientation.Z = clamp( targetXZ.y, -m_anchorConformZ, m_anchorConformZ );
|
||||
float cX = m_base->m_anchorConformX, cZ = m_base->m_anchorConformZ;
|
||||
m_orientation.X = clamp( targetXZ.x, -cX, cX );
|
||||
m_orientation.Z = clamp( targetXZ.y, -cZ, cZ );
|
||||
m_orientation_unclamped.x = targetXZ.x;
|
||||
m_orientation_unclamped.y = targetXZ.y;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user