diff options
author | Paul Gilbert | 2007-11-16 07:47:43 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-11-16 07:47:43 +0000 |
commit | 6f23a38c127ecfe2e5445ba4e12e66da9b69e7b0 (patch) | |
tree | 3cc0a121a2eb4bb1ecc2abf0f4b78c4b6ec9c283 | |
parent | 4bfa4378874ce4d20b6eb689f81d3d9f38ce461b (diff) | |
download | scummvm-rg350-6f23a38c127ecfe2e5445ba4e12e66da9b69e7b0.tar.gz scummvm-rg350-6f23a38c127ecfe2e5445ba4e12e66da9b69e7b0.tar.bz2 scummvm-rg350-6f23a38c127ecfe2e5445ba4e12e66da9b69e7b0.zip |
Added guard to prevent a character being reset to a default direction frame after a call to SetDirection if they're already facing in that direction - fixes some characters alternating frames
svn-id: r29514
-rw-r--r-- | engines/lure/hotspots.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp index b4c891fb94..1f3f081e98 100644 --- a/engines/lure/hotspots.cpp +++ b/engines/lure/hotspots.cpp @@ -526,7 +526,7 @@ void Hotspot::endAction() { } void Hotspot::setDirection(Direction dir) { - if (_numFrames == 0) return; + if ((_numFrames == 0) || (_direction == dir)) return; uint8 newFrameNumber = 0; switch (dir) { |