forked from mirrors/0ad
# Fixes to terrain conformance and movement speed bonus.
- Simplified CTerrain::getSlopeAngleFace and made it work correctly in all cases (before, it sometimes returned NAN and used an overly complicated method based on 8 angle sectors instead of a "continuous" method). - Removed the EntityMovement event - instead, movement speed modifier is calculated in C++ for performance. This was SVN commit r4339.
This commit is contained in:
@@ -87,7 +87,7 @@ void CEntity::ScriptingInit()
|
||||
|
||||
/* Any inherited property MUST be added to EntityTemplate.cpp as well */
|
||||
|
||||
AddClassProperty( L"actions.move.speedCurr", &CEntity::m_speed );
|
||||
AddClassProperty( L"actions.move.speed", &CEntity::m_speed );
|
||||
AddClassProperty( L"actions.move.run.speed", &CEntity::m_runSpeed );
|
||||
AddClassProperty( L"actions.move.run.rangemin", &CEntity::m_runMinRange );
|
||||
AddClassProperty( L"actions.move.run.range", &CEntity::m_runMaxRange );
|
||||
|
||||
Reference in New Issue
Block a user