aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/menu.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2011-09-07 23:54:34 +0200
committerJohannes Schickel2011-09-07 23:54:34 +0200
commit928cb5ab1196f800049ba3e22038acf9cab3bc60 (patch)
treeae0b956c483dd157e06ae04a85e586f09757306c /engines/sword1/menu.cpp
parentc346bf79b472eefea2a1e6b9ce01c5c3e342de73 (diff)
downloadscummvm-rg350-928cb5ab1196f800049ba3e22038acf9cab3bc60.tar.gz
scummvm-rg350-928cb5ab1196f800049ba3e22038acf9cab3bc60.tar.bz2
scummvm-rg350-928cb5ab1196f800049ba3e22038acf9cab3bc60.zip
SWORD1: Made code conform a bit better to our formatting guidelines.
Most is automatically converted via astyle + some manual fixes, hopefully I did not miss anything astyle messed up...
Diffstat (limited to 'engines/sword1/menu.cpp')
-rw-r--r--engines/sword1/menu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword1/menu.cpp b/engines/sword1/menu.cpp
index 3a99602fec..f61e10106a 100644
--- a/engines/sword1/menu.cpp
+++ b/engines/sword1/menu.cpp
@@ -85,7 +85,7 @@ void MenuIcon::setSelect(bool pSel) {
void MenuIcon::draw(const byte *fadeMask, int8 fadeStatus) {
uint16 x = _menuPos * 40;
- uint16 y = (_menuType == MENU_TOP)?(0):(440);
+ uint16 y = (_menuType == MENU_TOP) ? (0) : (440);
_screen->showFrame(x, y, _resId, _frame + (_selected ? 1 : 0), fadeMask, fadeStatus);
}
@@ -193,7 +193,7 @@ uint8 Menu::checkMenuClick(uint8 menuType) {
_mouse->setLuggage(0, 0);
Logic::_scriptVars[OBJECT_HELD] = 0; // reselected => deselect it
} else { // the player is clicking another item on this one.
- // run its use-script, if there is one
+ // run its use-script, if there is one
Logic::_scriptVars[SECOND_ITEM] = _menuList[cnt];
_mouse->setLuggage(0, 0);
}