diff options
author | Eric Fry | 2018-06-27 22:22:07 +1000 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 9ad048f8a6c6380fe8ca6534afcae30d3b1ada37 (patch) | |
tree | 008a086686b2659dbb24e040649159fe21c3e1b2 /engines/illusions/duckman | |
parent | d36eae4c17f15fe05d5a18508dd0b6fddfa1c96f (diff) | |
download | scummvm-rg350-9ad048f8a6c6380fe8ca6534afcae30d3b1ada37.tar.gz scummvm-rg350-9ad048f8a6c6380fe8ca6534afcae30d3b1ada37.tar.bz2 scummvm-rg350-9ad048f8a6c6380fe8ca6534afcae30d3b1ada37.zip |
ILLUSIONS: Fix formatting
Remove debug code from bbdou menu item select callback
Diffstat (limited to 'engines/illusions/duckman')
-rw-r--r-- | engines/illusions/duckman/duckman_specialcode.cpp | 2 | ||||
-rw-r--r-- | engines/illusions/duckman/menusystem_duckman.cpp | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/engines/illusions/duckman/duckman_specialcode.cpp b/engines/illusions/duckman/duckman_specialcode.cpp index c420bd500c..dd4e68916a 100644 --- a/engines/illusions/duckman/duckman_specialcode.cpp +++ b/engines/illusions/duckman/duckman_specialcode.cpp @@ -72,8 +72,10 @@ void DuckmanSpecialCode::init() { SPECIAL(0x00160003, spcResetChinesePuzzle); SPECIAL(0x00160004, spcAddChinesePuzzleAnswer); SPECIAL(0x00160005, spcOpenInventory); + SPECIAL(0x00160007, spcPutBackInventoryItem); SPECIAL(0x00160008, spcClearInventorySlot); + SPECIAL(0x0016000A, spcAddPropertyTimer); SPECIAL(0x0016000B, spcSetPropertyTimer); SPECIAL(0x0016000C, spcRemovePropertyTimer); diff --git a/engines/illusions/duckman/menusystem_duckman.cpp b/engines/illusions/duckman/menusystem_duckman.cpp index 84f7974d95..b4ccee903d 100644 --- a/engines/illusions/duckman/menusystem_duckman.cpp +++ b/engines/illusions/duckman/menusystem_duckman.cpp @@ -222,8 +222,7 @@ typedef struct InventoryMenuItem { uint32 propertyId; } InventoryMenuItem; -static const InventoryMenuItem kDebugInventoryItems[21] = -{ +static const InventoryMenuItem kDebugInventoryItems[21] = { { "Pick-up Book", 262212, 393231, 917519 }, { "Bucket and Squeegee", 262314, 393233, 917599 }, { "Cardboard Cut Out", 262219, 393264, 917573 }, @@ -398,7 +397,7 @@ void MenuActionUpdateSlider::setSliderValue(uint8 newValue) { _menuItem->setText(text); _menuSystem->redrawMenuText(menu); - switch(_type) { + switch (_type) { case SFX : _vm->_soundMan->setSfxVolume(newValue * (256/15)); break; case MUSIC : _vm->_soundMan->setMusicVolume(newValue * (256/15)); break; case VOICE : _vm->_soundMan->setSpeechVolume(newValue * (256/15)); break; |