aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/aniobject.cpp
diff options
context:
space:
mode:
authorSven Hesse2012-06-07 04:20:41 +0200
committerSven Hesse2012-06-07 04:21:29 +0200
commit3d537e763c85bb3f16825c8b47894335568278a0 (patch)
tree8990a0147a7cb25dfb2b7395896a498c332fc99e /engines/gob/aniobject.cpp
parent95454ab52c3e8f251b08aa62b18f071374de85b9 (diff)
downloadscummvm-rg350-3d537e763c85bb3f16825c8b47894335568278a0.tar.gz
scummvm-rg350-3d537e763c85bb3f16825c8b47894335568278a0.tar.bz2
scummvm-rg350-3d537e763c85bb3f16825c8b47894335568278a0.zip
GOB: Handle Penetration shooting animations more cleverly
Still no bullets, though :P
Diffstat (limited to 'engines/gob/aniobject.cpp')
-rw-r--r--engines/gob/aniobject.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/gob/aniobject.cpp b/engines/gob/aniobject.cpp
index 54534cd60b..8d739fb3a4 100644
--- a/engines/gob/aniobject.cpp
+++ b/engines/gob/aniobject.cpp
@@ -76,6 +76,10 @@ void ANIObject::rewind() {
_frame = 0;
}
+void ANIObject::setFrame(uint16 frame) {
+ _frame = frame % _ani->getAnimationInfo(_animation).frameCount;
+}
+
void ANIObject::setPosition() {
// CMP "animations" have no default position
if (_cmp)