PDA

Просмотр полной версии : [9207] Fixed chase/follow functions calls in movegen templates system.


newsbot
18.01.2010, 10:40
<pre>m src/game/TargetedMovementGenerator.cpp
m src/game/TargetedMovementGenerator.h
m src/shared/revision_nr.h

[9207] Fixed chase/follow functions calls in movegen templates system.

This commit specially made indeepndent from other changes for show problem
in my prev. commit where 2 new movegens added.

For proper call Initilize/Finilize/Reset/Interrupt/Update functions _important_
set second template arg in MovementGeneratorMedium< T, D >
in _last_ class in class chain. In other case in chase/follow instead TargetedMovementGeneratorMedium
In other cases will called referenced functions from TargetedMovementGeneratorMedium
instead proper subclasses.</pre>



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

tempura
26.02.2010, 10:57
Тут мысль возникла - если этот коммит откатить как-то - падения на мув генератор не прекратятся? :)


Call stack:
Address Frame Function SourceFile
000000014059E2D2 0000000008F89440 ?GetResetPosition@?$MovementGeneratorMedium@VCreat ure@@V?$RandomMovementGenerator@VCreature@@@@@@UEA A_NAEAVUnit@@AEAM11@Z+2B272
000000014059BCB2 0000000008F89600 ?GetResetPosition@?$MovementGeneratorMedium@VCreat ure@@V?$RandomMovementGenerator@VCreature@@@@@@UEA A_NAEAVUnit@@AEAM11@Z+28C52
000000014059B8EF 0000000008F89630 ?GetResetPosition@?$MovementGeneratorMedium@VCreat ure@@V?$RandomMovementGenerator@VCreature@@@@@@UEA A_NAEAVUnit@@AEAM11@Z+2888F