ULTIMA8: Avoid confman call on every animation

This commit is contained in:
Matthew Duggan 2021-05-23 11:06:23 +09:00
parent b9ddaf64f2
commit c74ae95508
2 changed files with 5 additions and 1 deletions

View File

@ -376,6 +376,10 @@ public:
_hasCheated = true;
}
Gump *getMenuGump() const;
bool isInterpolationEnabled() const {
return _interpolate;
}
};
} // End of namespace Ultima8

View File

@ -82,7 +82,7 @@ bool ActorAnimProcess::init() {
_animAborted = false;
_attackedSomething = false;
_interpolate = ConfMan.getBool("interpolate");
_interpolate = Ultima8Engine::get_instance()->isInterpolationEnabled();
Actor *actor = getActor(_itemNum);
assert(actor);