aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Base/BTransitionMgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/Base/BTransitionMgr.cpp')
-rw-r--r--engines/wintermute/Base/BTransitionMgr.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/wintermute/Base/BTransitionMgr.cpp b/engines/wintermute/Base/BTransitionMgr.cpp
index 02d6891528..778ac33a3f 100644
--- a/engines/wintermute/Base/BTransitionMgr.cpp
+++ b/engines/wintermute/Base/BTransitionMgr.cpp
@@ -58,12 +58,12 @@ bool CBTransitionMgr::isReady() {
//////////////////////////////////////////////////////////////////////////
-HRESULT CBTransitionMgr::start(TTransitionType type, bool nonInteractive) {
- if (_state != TRANS_MGR_READY) return S_OK;
+ERRORCODE CBTransitionMgr::start(TTransitionType type, bool nonInteractive) {
+ if (_state != TRANS_MGR_READY) return STATUS_OK;
if (type == TRANSITION_NONE || type >= NUM_TRANSITION_TYPES) {
_state = TRANS_MGR_READY;
- return S_OK;
+ return STATUS_OK;
}
if (nonInteractive) {
@@ -77,14 +77,14 @@ HRESULT CBTransitionMgr::start(TTransitionType type, bool nonInteractive) {
_state = TRANS_MGR_RUNNING;
_started = false;
- return S_OK;
+ return STATUS_OK;
}
#define FADE_DURATION 200
//////////////////////////////////////////////////////////////////////////
-HRESULT CBTransitionMgr::update() {
- if (isReady()) return S_OK;
+ERRORCODE CBTransitionMgr::update() {
+ if (isReady()) return STATUS_OK;
if (!_started) {
_started = true;
@@ -125,7 +125,7 @@ HRESULT CBTransitionMgr::update() {
if (_preserveInteractive)
Game->_interactive = _origInteractive;
}
- return S_OK;
+ return STATUS_OK;
}
} // end of namespace WinterMute