ENGINE: Rename resetTotalPlayTime to setTotalPlayTime.

I also extended the comment for it to show two possible use cases.

svn-id: r53895
This commit is contained in:
Johannes Schickel 2010-10-27 22:52:02 +00:00
parent ab1c54a9ee
commit dac9493069
4 changed files with 10 additions and 6 deletions

View file

@ -410,7 +410,7 @@ uint32 Engine::getTotalPlayTime() const {
return _pauseStartTime - _engineStartTime;
}
void Engine::resetTotalPlayTime(uint32 time) {
void Engine::setTotalPlayTime(uint32 time) {
const uint32 currentTime = _system->getMillis();
// We need to reset the pause start time here in case the engine is already