aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRetro-Junk2016-09-24 13:08:39 +0300
committerEugene Sandulenko2016-09-24 17:32:20 +0200
commitfb66de5bb97baedb9f4780a680c2da0b03d529d7 (patch)
treefe829439ab4933bd8faf852e3bd1e4c49c9ac71e
parentc070d109ee5979b45c89930a32fbed37f6fcabc5 (diff)
downloadscummvm-rg350-fb66de5bb97baedb9f4780a680c2da0b03d529d7.tar.gz
scummvm-rg350-fb66de5bb97baedb9f4780a680c2da0b03d529d7.tar.bz2
scummvm-rg350-fb66de5bb97baedb9f4780a680c2da0b03d529d7.zip
FULLPIPE: Fix Movement::calcDuration
-rw-r--r--engines/fullpipe/statics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 79432d440a..404a8edecc 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -1893,11 +1893,11 @@ int Movement::calcDuration() {
if (_currMovement)
for (uint i = 0; i < _currMovement->_dynamicPhases.size(); i++) {
- res += _currMovement->_dynamicPhases[i]->_initialCountdown;
+ res += _currMovement->_dynamicPhases[i]->_initialCountdown + 1;
}
else
for (uint i = 0; i < _dynamicPhases.size(); i++) {
- res += _dynamicPhases[i]->_initialCountdown;
+ res += _dynamicPhases[i]->_initialCountdown + 1;
}
return res;