aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/duckman
diff options
context:
space:
mode:
authorEric Fry2018-06-26 22:28:52 +1000
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit7cadb7ad0ce7b24c28d3fa9d842f7083ae5b9056 (patch)
tree0fe9404404510cadb1586dd1a43e35cda3c1c25f /engines/illusions/duckman
parentaa241b8ef37a09972171159045c9f2efe0c167e9 (diff)
downloadscummvm-rg350-7cadb7ad0ce7b24c28d3fa9d842f7083ae5b9056.tar.gz
scummvm-rg350-7cadb7ad0ce7b24c28d3fa9d842f7083ae5b9056.tar.bz2
scummvm-rg350-7cadb7ad0ce7b24c28d3fa9d842f7083ae5b9056.zip
ILLUSIONS: Formatting
Diffstat (limited to 'engines/illusions/duckman')
-rw-r--r--engines/illusions/duckman/menusystem_duckman.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/illusions/duckman/menusystem_duckman.cpp b/engines/illusions/duckman/menusystem_duckman.cpp
index c773afc554..4d63147321 100644
--- a/engines/illusions/duckman/menusystem_duckman.cpp
+++ b/engines/illusions/duckman/menusystem_duckman.cpp
@@ -251,7 +251,7 @@ BaseMenu *DuckmanMenuSystem::createAddRemoveInventoryMenu() {
BaseMenu *menu = new BaseMenu(this, 0x00120002, 0, 0, 0, 17, 1);
menu->addText("Add/Remove Inventory");
menu->addText("-----------------");
- for(int i=0;i < 21;i++) {
+ for (int i = 0; i < 21; i++) {
menu->addMenuItem(new MenuItem(kDebugInventoryItems[i].name, new MenuActionInventoryAddRemove(this, _vm, i)));
}
menu->addMenuItem(new MenuItem("Back", new MenuActionLeaveMenu(this)));
@@ -318,13 +318,13 @@ void DuckmanMenuSystem::playSoundEffect(int sfxId) {
_vm->playSoundEffect(sfxId);
}
- MenuActionInventoryAddRemove::MenuActionInventoryAddRemove(BaseMenuSystem *menuSystem, IllusionsEngine_Duckman *vm, uint choiceIndex)
- : BaseMenuAction(menuSystem), _choiceIndex(choiceIndex), _vm(vm) {
+MenuActionInventoryAddRemove::MenuActionInventoryAddRemove(BaseMenuSystem *menuSystem, IllusionsEngine_Duckman *vm, uint choiceIndex)
+ : BaseMenuAction(menuSystem), _choiceIndex(choiceIndex), _vm(vm) {
}
void MenuActionInventoryAddRemove::execute() {
if (_vm->_scriptResource->_properties.get(kDebugInventoryItems[_choiceIndex].propertyId)) {
- if(_vm->_cursor._objectId == kDebugInventoryItems[_choiceIndex].objectId) {
+ if (_vm->_cursor._objectId == kDebugInventoryItems[_choiceIndex].objectId) {
_vm->stopCursorHoldingObject();
}
_vm->_scriptResource->_properties.set(kDebugInventoryItems[_choiceIndex].propertyId, false);
@@ -360,7 +360,7 @@ int MenuActionUpdateSlider::calcNewSliderValue(int newOffset) {
int start = 0;
int end = 0;
int currentPosition = 0;
- for(int i = 0; i < text.size(); i++) {
+ for (int i = 0; i < text.size(); i++) {
switch (text[i]) {
case '{' : start = i; break;
case '}' : end = i; break;
@@ -385,7 +385,7 @@ int MenuActionUpdateSlider::calcNewSliderValue(int newOffset) {
void MenuActionUpdateSlider::setSliderValue(uint8 newValue) {
int start = 0;
Common::String text = _menuItem->getText();
- for(int i = 0; i < text.size(); i++) {
+ for (int i = 0; i < text.size(); i++) {
switch (text[i]) {
case '{' : start = i; break;
case '|' : text.setChar('~', i); break;