[Scummvm-cvs-logs] scummvm master -> f27c001527a8f6221553ba98fbb9a4da129a1c11
sev-
sev at scummvm.org
Thu Aug 25 23:02:41 CEST 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
f27c001527 FULLPIPE: Another fix to gotoLastFrame()
Commit: f27c001527a8f6221553ba98fbb9a4da129a1c11
https://github.com/scummvm/scummvm/commit/f27c001527a8f6221553ba98fbb9a4da129a1c11
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-08-25T23:02:12+02:00
Commit Message:
FULLPIPE: Another fix to gotoLastFrame()
Changed paths:
engines/fullpipe/statics.cpp
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index d8956b5..e0fc1f6 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -2154,8 +2154,11 @@ void Movement::gotoFirstFrame() {
void Movement::gotoLastFrame() {
if (_currMovement) {
- while ((uint)_currDynamicPhaseIndex != _currMovement->_dynamicPhases.size() - 1)
- gotoNextFrame(0, 0);
+ if ((uint)_currDynamicPhaseIndex != _currMovement->_dynamicPhases.size() - 1) {
+ do {
+ gotoNextFrame(0, 0);
+ } while ((uint)_currDynamicPhaseIndex != _currMovement->_dynamicPhases.size() - 1);
+ }
} else {
if ((uint)_currDynamicPhaseIndex != _dynamicPhases.size() - 1) {
do {
More information about the Scummvm-git-logs
mailing list