mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-22 20:47:11 +00:00
# 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