[8077] Resolve mixed store and use 2 different flags values types in single field.
commitf970e419d5ffc3b41377175d434283b3d9686c05
authorVladimirMangos <vladimir@getmangos.com>
Thu, 25 Jun 2009 07:03:51 +0000 (25 11:03 +0400)
committerVladimirMangos <vladimir@getmangos.com>
Thu, 25 Jun 2009 21:57:34 +0000 (26 01:57 +0400)
treef58e238fa58cf59ec80381d5df13883469162cec
parent30cd33893c9464c1811c29e4ccc3f98493d89d2f
[8077] Resolve mixed store and use 2 different flags values types in single field.

* Create new monster move field in Creature class and use it in all cases when expected use MONSTER_MOVE_* flags.
* Store and use MOVEMENTFLAG_* values in field in MovementInfo structure of Player class.
* Cleanups and fix related code.

NOTE: DB in creature_addon store values similar MONSTER_MOVE_* flags, scritps also expected set only this flags.
24 files changed:
src/game/ConfusedMovementGenerator.cpp
src/game/Creature.cpp
src/game/Creature.h
src/game/FleeingMovementGenerator.cpp
src/game/HomeMovementGenerator.cpp
src/game/Level3.cpp
src/game/MiscHandler.cpp
src/game/MovementHandler.cpp
src/game/Object.cpp
src/game/Object.h
src/game/Player.cpp
src/game/Player.h
src/game/PointMovementGenerator.cpp
src/game/RandomMovementGenerator.cpp
src/game/Spell.cpp
src/game/SpellAuras.cpp
src/game/TargetedMovementGenerator.cpp
src/game/Traveller.h
src/game/Unit.cpp
src/game/Unit.h
src/game/WaypointMovementGenerator.cpp
src/game/World.cpp
src/game/WorldSession.cpp
src/shared/revision_nr.h