TWINE: unified z position for addExtraAiming animation call

... with findings from disassembly
This commit is contained in:
Martin Gerhardy 2021-02-08 21:07:07 +01:00
parent ff75b1112a
commit 07a38ce768

View File

@ -419,7 +419,7 @@ void Animations::processAnimActions(int32 actorIdx) {
_engine->_movements->rotateActor(action.distanceX, action.distanceZ, actor->angle);
const int32 x = actor->x + _engine->_renderer->destX;
const int32 y = actor->y + action.distanceY;
const int32 z = actor->z + action.distanceZ;
const int32 z = actor->z + _engine->_renderer->destZ;
_engine->_extra->addExtraAiming(actorIdx, x, y, z, action.spriteIndex,
action.targetActor, action.finalAngle, action.strength);
}