spring: develop 2173f001 | [ Diff ] [ Back to Repository ] | |||
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
rt | rt | develop | 2012-03-24 12:39:14 | develop 855c78d3 |
Changeset | LuaSyncedMoveCtrl: remove SetGroundMoveTypeData(unitID, "wantedSpeed", v) and SetGroundMoveTypeData(unitID, "maxWantedSpeed", v) the first was always a no-op (GMT::wantedSpeed is updated internally every frame), the second only worked for the duration of a single move order and ONLY if there was no CMD_SET_WANTED_MAX_SPEED in the queue behind it (otherwise SlowUpdateMaxSpeed would kick in and override the value) the preferred way for gadgets to change a unit's speed is by SetGroundMoveTypeData(unitID, "maxSpeed", v) |
|||
mod - rts/Lua/LuaSyncedMoveCtrl.cpp | [ Diff ] [ File ] | |||
mod - rts/Sim/MoveTypes/GroundMoveType.cpp | [ Diff ] [ File ] |