mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
ULTIMA8: Avoid confman call on every animation
This commit is contained in:
parent
b9ddaf64f2
commit
c74ae95508
@ -376,6 +376,10 @@ public:
|
||||
_hasCheated = true;
|
||||
}
|
||||
Gump *getMenuGump() const;
|
||||
|
||||
bool isInterpolationEnabled() const {
|
||||
return _interpolate;
|
||||
}
|
||||
};
|
||||
|
||||
} // End of namespace Ultima8
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user