diff options
author | Torbjörn Andersson | 2009-12-30 07:14:09 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2009-12-30 07:14:09 +0000 |
commit | 1a66ad80a4b9bec6440060c5f941ca5f53833703 (patch) | |
tree | 04394653e5951dde6c9b4cc09dc202e57aa62ce7 /engines/mohawk/riven_external.cpp | |
parent | 516495a4a1a66e907257e8545dd668a1613d61f2 (diff) | |
download | scummvm-rg350-1a66ad80a4b9bec6440060c5f941ca5f53833703.tar.gz scummvm-rg350-1a66ad80a4b9bec6440060c5f941ca5f53833703.tar.bz2 scummvm-rg350-1a66ad80a4b9bec6440060c5f941ca5f53833703.zip |
Re-indentet switch() blocks to follow ScummVM indentation style. (I've always
found this style a bit unusual, but I value consistency.)
svn-id: r46734
Diffstat (limited to 'engines/mohawk/riven_external.cpp')
-rw-r--r-- | engines/mohawk/riven_external.cpp | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/engines/mohawk/riven_external.cpp b/engines/mohawk/riven_external.cpp index 647f3a35f6..5108fd8867 100644 --- a/engines/mohawk/riven_external.cpp +++ b/engines/mohawk/riven_external.cpp @@ -659,35 +659,35 @@ void RivenExternal::xvalvecontrol(uint16 argc, uint16 *argv) { for (;;) { while (_vm->_system->getEventManager()->pollEvent(event)) { switch (event.type) { - case Common::EVENT_MOUSEMOVE: - changeX = event.mouse.x - _vm->_mousePos.x; - changeY = _vm->_mousePos.y - event.mouse.y; - _vm->_system->updateScreen(); - break; - case Common::EVENT_LBUTTONUP: - // FIXME: These values for changes in x/y could be tweaked. - if (*valve == 0 && changeY <= -10) { - *valve = 1; + case Common::EVENT_MOUSEMOVE: + changeX = event.mouse.x - _vm->_mousePos.x; + changeY = _vm->_mousePos.y - event.mouse.y; + _vm->_system->updateScreen(); + break; + case Common::EVENT_LBUTTONUP: + // FIXME: These values for changes in x/y could be tweaked. + if (*valve == 0 && changeY <= -10) { + *valve = 1; + // TODO: Play movie + _vm->changeToCard(); // Refresh + } else if (*valve == 1) { + if (changeX >= 0 && changeY >= 10) { + *valve = 0; // TODO: Play movie _vm->changeToCard(); // Refresh - } else if (*valve == 1) { - if (changeX >= 0 && changeY >= 10) { - *valve = 0; - // TODO: Play movie - _vm->changeToCard(); // Refresh - } else if (changeX <= -10 && changeY <= 10) { - *valve = 2; - // TODO: Play movie - _vm->changeToCard(); // Refresh - } - } else if (*valve == 2 && changeX >= 10) { - *valve = 1; + } else if (changeX <= -10 && changeY <= 10) { + *valve = 2; // TODO: Play movie _vm->changeToCard(); // Refresh } - return; - default: - break; + } else if (*valve == 2 && changeX >= 10) { + *valve = 1; + // TODO: Play movie + _vm->changeToCard(); // Refresh + } + return; + default: + break; } } _vm->_system->delayMillis(10); @@ -1004,22 +1004,22 @@ int RivenExternal::jspitElevatorLoop() { for (;;) { while (_vm->_system->getEventManager()->pollEvent(event)) { switch (event.type) { - case Common::EVENT_MOUSEMOVE: - if (event.mouse.y > (_vm->_mousePos.y + 10)) { - changeLevel = -1; - } else if (event.mouse.y < (_vm->_mousePos.y - 10)) { - changeLevel = 1; - } else { - changeLevel = 0; - } - _vm->_system->updateScreen(); - break; - case Common::EVENT_LBUTTONUP: - _vm->_gfx->changeCursor(kRivenMainCursor); - _vm->_system->updateScreen(); - return changeLevel; - default: - break; + case Common::EVENT_MOUSEMOVE: + if (event.mouse.y > (_vm->_mousePos.y + 10)) { + changeLevel = -1; + } else if (event.mouse.y < (_vm->_mousePos.y - 10)) { + changeLevel = 1; + } else { + changeLevel = 0; + } + _vm->_system->updateScreen(); + break; + case Common::EVENT_LBUTTONUP: + _vm->_gfx->changeCursor(kRivenMainCursor); + _vm->_system->updateScreen(); + return changeLevel; + default: + break; } } _vm->_system->delayMillis(10); |