PDA

Просмотр полной версии : [9405] Make all movements instant applied.


newsbot
18.02.2010, 02:05
<pre>m src/game/Creature.cpp
m src/game/Creature.h
m src/game/Map.cpp
m src/game/Map.h
m src/game/MapInstanced.cpp
m src/game/MapInstanced.h
m src/game/MapManager.cpp
m src/game/MapManager.h
m src/game/Unit.cpp
m src/game/Unit.h
m src/game/World.cpp
m src/shared/revision_nr.h

[9405] Make all movements instant applied.

* Drop delayed moves list in Map code
* Apply movement coords update always at call including movement to different cell/grid.
* Instead removed functionality mark creature as need move notify broadcast at next tick, do it.

This must resolve porblesm with CreatureRelocation in past not always update position to new expected at call
And in resul next code fail or work in strange way. Mark creature for notifier call at next Update
let safe main part remopved functionality implemented in another way: prevent cascade (or infinity chain)
in move updates. In fiture possible implement move notify call not at each tick for save time.</pre>



Дальше... (http://github.com/mangos/mangos/commit/297025b490fd2085206e69499c1bf4cf7941d364)