From fa332c4e6201da4f8d6ece208784e53ae49ccfe9 Mon Sep 17 00:00:00 2001 From: Matthew Duggan Date: Mon, 18 May 2020 18:00:50 +0900 Subject: [PATCH] ULTIMA8: Small debugging improvements --- .../ultima/ultima8/world/actors/actor_anim_process.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/engines/ultima/ultima8/world/actors/actor_anim_process.cpp b/engines/ultima/ultima8/world/actors/actor_anim_process.cpp index e6eee029798..40a695caff4 100644 --- a/engines/ultima/ultima8/world/actors/actor_anim_process.cpp +++ b/engines/ultima/ultima8/world/actors/actor_anim_process.cpp @@ -212,7 +212,7 @@ void ActorAnimProcess::run() { if (_itemNum == watchactor) { pout << "Animation [" << Kernel::get_instance()->getFrameNum() - << "] falling" << Std::endl; + << "] falling at end" << Std::endl; } #endif int32 dx, dy, dz; @@ -244,7 +244,7 @@ void ActorAnimProcess::run() { if (_itemNum == watchactor) { pout << "Animation [" << Kernel::get_instance()->getFrameNum() - << "] falling" << Std::endl; + << "] falling from blocked" << Std::endl; } #endif // no inertia here because we just crashed into something @@ -257,7 +257,7 @@ void ActorAnimProcess::run() { } } - AnimFrame *curframe = _tracker->getAnimFrame(); + const AnimFrame *curframe = _tracker->getAnimFrame(); if (curframe && curframe->_sfx) { AudioProcess *audioproc = AudioProcess::get_instance(); if (audioproc) audioproc->playSFX(curframe->_sfx, 0x60, _itemNum, 0); @@ -318,7 +318,7 @@ void ActorAnimProcess::run() { pout << "Animation [" << Kernel::get_instance()->getFrameNum() << "] showing frame (" << x << "," << y << "," << z << ")" << " shape (" << a->getShape() << "," << _tracker->getFrame() - << ") sfx " << _tracker->getAnimFrame()->sfx + << ") sfx " << _tracker->getAnimFrame()->_sfx << " rep " << _repeatCounter << " "; if (_tracker->isDone()) pout << "D"; @@ -337,7 +337,7 @@ void ActorAnimProcess::run() { #ifdef WATCHACTOR if (_itemNum == watchactor) { pout << "Animation [" << Kernel::get_instance()->getFrameNum() - << "] falling" << Std::endl; + << "] falling from repeat" << Std::endl; } #endif