aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorJohannes Schickel2010-10-27 22:52:02 +0000
committerJohannes Schickel2010-10-27 22:52:02 +0000
commitdac9493069509518c0f508f93630584765bac5df (patch)
treebc2b719b8d8eb0cd6f0e20cf8a629f8b18a9b692 /engines/scumm
parentab1c54a9eef79090c7cf81f09e561480b4964671 (diff)
downloadscummvm-rg350-dac9493069509518c0f508f93630584765bac5df.tar.gz
scummvm-rg350-dac9493069509518c0f508f93630584765bac5df.tar.bz2
scummvm-rg350-dac9493069509518c0f508f93630584765bac5df.zip
ENGINE: Rename resetTotalPlayTime to setTotalPlayTime.
I also extended the comment for it to show two possible use cases. svn-id: r53895
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/saveload.cpp4
-rw-r--r--engines/scumm/scumm.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp
index b9cb0ae10f..9cb603e27f 100644
--- a/engines/scumm/saveload.cpp
+++ b/engines/scumm/saveload.cpp
@@ -378,10 +378,10 @@ bool ScummEngine::loadState(int slot, bool compat) {
return false;
}
- resetTotalPlayTime(infos.playtime * 1000);
+ setTotalPlayTime(infos.playtime * 1000);
} else {
// start time counting
- resetTotalPlayTime();
+ setTotalPlayTime();
}
// Due to a bug in scummvm up to and including 0.3.0, save games could be saved
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index 2c654402fa..42be33fff3 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -1927,7 +1927,7 @@ int ScummEngine::getTalkSpeed() {
#pragma mark -
Common::Error ScummEngine::go() {
- resetTotalPlayTime();
+ setTotalPlayTime();
// If requested, load a save game instead of running the boot script
if (_saveLoadFlag != 2 || !loadState(_saveLoadSlot, _saveTemporaryState)) {