Permalink
Browse files

[11805] Send unit movement speeds in the proper order, correct baseMo…

…veSpeed value order

Signed-off-by: SilverIce <slifeleaf@gmail.com>
  • Loading branch information...
1 parent 611a4ad commit 5f9494a2e85bc707e568d64d78a4a96eb338bfc1 Midna committed with Sep 25, 2011
Showing with 5 additions and 5 deletions.
  1. +2 −2 src/game/Object.cpp
  2. +2 −2 src/game/Unit.cpp
  3. +1 −1 src/shared/revision_nr.h
View
@@ -272,9 +272,9 @@ void Object::BuildMovementUpdate(ByteBuffer * data, uint16 updateFlags) const
// Unit speeds
*data << float(unit->GetSpeed(MOVE_WALK));
*data << float(unit->GetSpeed(MOVE_RUN));
- *data << float(unit->GetSpeed(MOVE_SWIM_BACK));
- *data << float(unit->GetSpeed(MOVE_SWIM));
*data << float(unit->GetSpeed(MOVE_RUN_BACK));
+ *data << float(unit->GetSpeed(MOVE_SWIM));
+ *data << float(unit->GetSpeed(MOVE_SWIM_BACK));
*data << float(unit->GetSpeed(MOVE_FLIGHT));
*data << float(unit->GetSpeed(MOVE_FLIGHT_BACK));
*data << float(unit->GetSpeed(MOVE_TURN_RATE));
View
@@ -57,9 +57,9 @@ float baseMoveSpeed[MAX_MOVE_TYPE] =
{
2.5f, // MOVE_WALK
7.0f, // MOVE_RUN
- 2.5f, // MOVE_RUN_BACK
+ 4.5f, // MOVE_RUN_BACK
4.722222f, // MOVE_SWIM
- 4.5f, // MOVE_SWIM_BACK
+ 2.5f, // MOVE_SWIM_BACK
3.141594f, // MOVE_TURN_RATE
7.0f, // MOVE_FLIGHT
4.5f, // MOVE_FLIGHT_BACK
View
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
- #define REVISION_NR "11804"
+ #define REVISION_NR "11805"
#endif // __REVISION_NR_H__

0 comments on commit 5f9494a

Please sign in to comment.