Core/Movement

* Added wrapper methods for setting various movement flags and sending correct movement opcodes
* Made flying and falling spline flags exclusive with each other
This commit is contained in:
Shauren committed 2013-06-18 16:47:12 +02:00
1 parent 779f3c2f08
commit d9df460694
15 files changed
+231 -205

No files matched your search

@@ -100,6 +100,8 @@ namespace Movement
uint32 moveFlagsForSpeed = moveFlags;
if (args.flags.walkmode)
moveFlagsForSpeed |= MOVEMENTFLAG_WALKING;
else
moveFlagsForSpeed &= ~MOVEMENTFLAG_WALKING;
args.velocity = unit->GetSpeed(SelectSpeedType(moveFlagsForSpeed));
}