diff options
author | _manuel_ <manue.l@live.com.ar> | 2010-03-21 14:57:49 -0300 |
---|---|---|
committer | _manuel_ <manue.l@live.com.ar> | 2010-03-21 14:57:49 -0300 |
commit | fae77f26210b4090271bb9227083c8c5240b715c (patch) | |
tree | 92f232b8a3f6216f77e2362e9b96ee821201a84d /src/game/Creature.cpp | |
parent | 2c34b6d376edf97e16902017c5fa8bd66d0162b1 (diff) |
Add additional field for storage of speed_run rate of creature
This allow independent rate of walk vs run speed. Existing field renamed to explicit speed_walk.
Note that default database rate for run is a result of the most common value seen, 8.0/7.0
Author: NoFantasy.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r-- | src/game/Creature.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 8404702f748..e4f3e2e7b89 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -341,9 +341,10 @@ bool Creature::InitEntry(uint32 Entry, uint32 team, const CreatureData *data ) SetFloatValue(UNIT_MOD_CAST_SPEED, 1.0f); - SetSpeed(MOVE_WALK, cinfo->speed ); - SetSpeed(MOVE_RUN, cinfo->speed ); - SetSpeed(MOVE_SWIM, cinfo->speed ); + SetSpeed(MOVE_WALK, cinfo->speed_walk ); + SetSpeed(MOVE_RUN, cinfo->speed_run ); + SetSpeed(MOVE_SWIM, 1.0f); // using 1.0 rate + SetSpeed(MOVE_FLIGHT, 1.0f); // using 1.0 rate SetFloatValue(OBJECT_FIELD_SCALE_X, cinfo->scale); |