aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/events.cpp
diff options
context:
space:
mode:
authorStrangerke2014-02-11 07:51:55 +0100
committerStrangerke2014-02-11 07:51:55 +0100
commite688cb501534e98a024edc136ca5b833e173944d (patch)
treebca4d9a8025dc5c7a133acae28c81d138485fdb2 /engines/voyeur/events.cpp
parent72d21312639921691336640614f93bb7d3ba1b27 (diff)
downloadscummvm-rg350-e688cb501534e98a024edc136ca5b833e173944d.tar.gz
scummvm-rg350-e688cb501534e98a024edc136ca5b833e173944d.tar.bz2
scummvm-rg350-e688cb501534e98a024edc136ca5b833e173944d.zip
VOYEUR: Implement fadeIntFunc()
Diffstat (limited to 'engines/voyeur/events.cpp')
-rw-r--r--engines/voyeur/events.cpp29
1 files changed, 28 insertions, 1 deletions
diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp
index 32ffa1584e..4e6986b803 100644
--- a/engines/voyeur/events.cpp
+++ b/engines/voyeur/events.cpp
@@ -505,7 +505,34 @@ void EventsManager::vDoCycleInt() {
void EventsManager::fadeIntFunc() {
- warning("TODO");
+ switch (_vm->_voy._field437E) {
+ case 1:
+ if (_vm->_voy._field4376 < 63)
+ _vm->_voy._field4376 += _vm->_voy._field437A;
+ if (_vm->_voy._field4378 < 63)
+ _vm->_voy._field4378 += _vm->_voy._field437C;
+ if (_vm->_voy._field4376 > 63)
+ _vm->_voy._field4376 = 63;
+ if (_vm->_voy._field4378 > 63)
+ _vm->_voy._field4378 = 63;
+ if ((_vm->_voy._field4376 == 63) && (_vm->_voy._field4378 == 63))
+ _vm->_voy._field437E = 0;
+ break;
+ case 2:
+ if (_vm->_voy._field4376 > 0)
+ _vm->_voy._field4376 -= _vm->_voy._field437A;
+ if (_vm->_voy._field4378 > 0)
+ _vm->_voy._field4378 -= _vm->_voy._field437C;
+ if (_vm->_voy._field4376 < 0)
+ _vm->_voy._field4376 = 0;
+ if (_vm->_voy._field4378 < 0)
+ _vm->_voy._field4378 = 0;
+ if ((_vm->_voy._field4376 == 0) && (_vm->_voy._field4378 == 0))
+ _vm->_voy._field437E = 0;
+ break;
+ default:
+ break;
+ }
}
void EventsManager::deleteIntNode(IntNode *node) {