aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2009-12-30 07:14:09 +0000
committerTorbjörn Andersson2009-12-30 07:14:09 +0000
commit1a66ad80a4b9bec6440060c5f941ca5f53833703 (patch)
tree04394653e5951dde6c9b4cc09dc202e57aa62ce7 /engines/mohawk/riven.cpp
parent516495a4a1a66e907257e8545dd668a1613d61f2 (diff)
downloadscummvm-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.cpp')
-rw-r--r--engines/mohawk/riven.cpp106
1 files changed, 53 insertions, 53 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp
index e2f581d75d..8653329fc9 100644
--- a/engines/mohawk/riven.cpp
+++ b/engines/mohawk/riven.cpp
@@ -104,69 +104,69 @@ Common::Error MohawkEngine_Riven::run() {
while (_eventMan->pollEvent(event)) {
switch (event.type) {
- case Common::EVENT_MOUSEMOVE:
- _mousePos = event.mouse;
- checkHotspotChange();
+ case Common::EVENT_MOUSEMOVE:
+ _mousePos = event.mouse;
+ checkHotspotChange();
- // Check to show the inventory
- if (_mousePos.y >= 392)
- _gfx->showInventory();
- else
- _gfx->hideInventory();
+ // Check to show the inventory
+ if (_mousePos.y >= 392)
+ _gfx->showInventory();
+ else
+ _gfx->hideInventory();
- needsUpdate = true;
+ needsUpdate = true;
+ break;
+ case Common::EVENT_LBUTTONDOWN:
+ if (_curHotspot >= 0) {
+ runHotspotScript(_curHotspot, kMouseDownScript);
+ //scheduleScript(_hotspots[_curHotspot].script, kMouseMovedPressedReleasedScript);
+ }
+ break;
+ case Common::EVENT_LBUTTONUP:
+ if (_curHotspot >= 0) {
+ runHotspotScript(_curHotspot, kMouseUpScript);
+ //scheduleScript(_hotspots[_curHotspot].script, kMouseMovedPressedReleasedScript);
+ } else
+ checkInventoryClick();
+ break;
+ case Common::EVENT_KEYDOWN:
+ switch (event.kbd.keycode) {
+ case Common::KEYCODE_d:
+ if (event.kbd.flags & Common::KBD_CTRL) {
+ _console->attach();
+ _console->onFrame();
+ }
+ break;
+ case Common::KEYCODE_SPACE:
+ pauseGame();
break;
- case Common::EVENT_LBUTTONDOWN:
- if (_curHotspot >= 0) {
- runHotspotScript(_curHotspot, kMouseDownScript);
- //scheduleScript(_hotspots[_curHotspot].script, kMouseMovedPressedReleasedScript);
+ case Common::KEYCODE_F4:
+ _showHotspots = !_showHotspots;
+ if (_showHotspots) {
+ for (uint16 i = 0; i < _hotspotCount; i++)
+ _gfx->drawRect(_hotspots[i].rect, _hotspots[i].enabled);
+ needsUpdate = true;
+ } else {
+ changeToCard();
}
break;
- case Common::EVENT_LBUTTONUP:
- if (_curHotspot >= 0) {
- runHotspotScript(_curHotspot, kMouseUpScript);
- //scheduleScript(_hotspots[_curHotspot].script, kMouseMovedPressedReleasedScript);
- } else
- checkInventoryClick();
+ case Common::KEYCODE_F5:
+ runDialog(*_optionsDialog);
+ updateZipMode();
break;
- case Common::EVENT_KEYDOWN:
- switch (event.kbd.keycode) {
- case Common::KEYCODE_d:
- if (event.kbd.flags & Common::KBD_CTRL) {
- _console->attach();
- _console->onFrame();
- }
- break;
- case Common::KEYCODE_SPACE:
- pauseGame();
- break;
- case Common::KEYCODE_F4:
- _showHotspots = !_showHotspots;
- if (_showHotspots) {
- for (uint16 i = 0; i < _hotspotCount; i++)
- _gfx->drawRect(_hotspots[i].rect, _hotspots[i].enabled);
- needsUpdate = true;
- } else {
- changeToCard();
- }
- break;
- case Common::KEYCODE_F5:
- runDialog(*_optionsDialog);
- updateZipMode();
- break;
- case Common::KEYCODE_ESCAPE:
- if (getFeatures() & GF_DEMO) {
- if (_curStack != aspit)
- changeToStack(aspit);
- changeToCard(1);
- }
- break;
- default:
- break;
+ case Common::KEYCODE_ESCAPE:
+ if (getFeatures() & GF_DEMO) {
+ if (_curStack != aspit)
+ changeToStack(aspit);
+ changeToCard(1);
}
break;
default:
break;
+ }
+ break;
+ default:
+ break;
}
}