YTDB

YTDB (http://ytdb.ru/index.php)
-   CMaNGOS Commits (http://ytdb.ru/forumdisplay.php?f=27)
-   -   [10431] Correcting issues with flying creatures falling to ground at death. (http://ytdb.ru/showthread.php?t=7775)

newsbot 01.09.2010 02:40

[10431] Correcting issues with flying creatures falling to ground at death.
 
<pre>m src/game/Creature.cpp
m src/game/Map.cpp
m src/game/TargetedMovementGenerator.cpp
m src/game/Traveller.h
m src/game/Unit.cpp
m src/shared/revision_nr.h
</pre>
<pre style='white-space:pre-wrap;width:81ex'>[10431] Correcting issues with flying creatures falling to ground at death.

Simplified the way FallGround works and death states are set in a more logical way when a mob is in fact DEAD_FALLING.
Visual will in some cases not be correct. Notes in code for details.

Thanks to Lynx fixing Map::GetHeight
It now return mapHeight as last resort, making FallGround work as expected.
This fix reveal one (known) bug, and therefore a temp hack is added in TargetedMovegen, to be sure Z is not the ground Z for a creature that are able to fly.
Other creatures will follow by the ground level Z (in other words, they will no longer follow in the air).</pre>




Дальше...


Текущее время: 12:17. Часовой пояс GMT +4.

YTDB - MaNGOS DataBase