aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects
diff options
context:
space:
mode:
authorEugene Sandulenko2018-06-20 14:02:01 +0200
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commita224e41edcafcb4b58d2ebf1e224649d0f23ac15 (patch)
tree1561c0c149eb808e08304eec536831e440c6763a /engines/pink/objects
parentc3e1157d18022795f23b37a876ae51e31c38adba (diff)
downloadscummvm-rg350-a224e41edcafcb4b58d2ebf1e224649d0f23ac15.tar.gz
scummvm-rg350-a224e41edcafcb4b58d2ebf1e224649d0f23ac15.tar.bz2
scummvm-rg350-a224e41edcafcb4b58d2ebf1e224649d0f23ac15.zip
PINK: JANITORIAL: More whitespace fixes
Diffstat (limited to 'engines/pink/objects')
-rw-r--r--engines/pink/objects/actions/action_sound.cpp4
-rw-r--r--engines/pink/objects/actors/lead_actor.cpp8
-rw-r--r--engines/pink/objects/actors/pda_button_actor.cpp6
-rw-r--r--engines/pink/objects/inventory.cpp2
-rw-r--r--engines/pink/objects/sequences/sequence.cpp2
5 files changed, 11 insertions, 11 deletions
diff --git a/engines/pink/objects/actions/action_sound.cpp b/engines/pink/objects/actions/action_sound.cpp
index 9f12297adb..0dcfa85cd7 100644
--- a/engines/pink/objects/actions/action_sound.cpp
+++ b/engines/pink/objects/actions/action_sound.cpp
@@ -40,8 +40,8 @@ void ActionSound::deserialize(Archive &archive) {
_fileName = archive.readString();
_volume = archive.readDWORD();
assert(_volume <= 100);
- _isLoop = (bool) archive.readDWORD();
- _isBackground = (bool) archive.readDWORD();
+ _isLoop = (bool)archive.readDWORD();
+ _isBackground = (bool)archive.readDWORD();
}
void ActionSound::toConsole() {
diff --git a/engines/pink/objects/actors/lead_actor.cpp b/engines/pink/objects/actors/lead_actor.cpp
index 872428d926..4d07106cbb 100644
--- a/engines/pink/objects/actors/lead_actor.cpp
+++ b/engines/pink/objects/actors/lead_actor.cpp
@@ -54,10 +54,10 @@ void LeadActor::toConsole() {
}
void LeadActor::loadState(Archive &archive) {
- _state = (State) archive.readByte();
- _nextState = (State) archive.readByte();
- _stateBeforeInventory = (State) archive.readByte();
- _stateBeforePDA = (State) archive.readByte();
+ _state = (State)archive.readByte();
+ _nextState = (State)archive.readByte();
+ _stateBeforeInventory = (State)archive.readByte();
+ _stateBeforePDA = (State)archive.readByte();
_isHaveItem = archive.readByte();
Common::String recepient = archive.readString();
if (!recepient.empty())
diff --git a/engines/pink/objects/actors/pda_button_actor.cpp b/engines/pink/objects/actors/pda_button_actor.cpp
index 6369394d72..240d51a705 100644
--- a/engines/pink/objects/actors/pda_button_actor.cpp
+++ b/engines/pink/objects/actors/pda_button_actor.cpp
@@ -32,8 +32,8 @@ void PDAButtonActor::deserialize(Archive &archive) {
Actor::deserialize(archive);
_x = archive.readDWORD();
_y = archive.readDWORD();
- _hideOnStop = (bool) archive.readDWORD();
- _opaque = (bool) archive.readDWORD();
+ _hideOnStop = (bool)archive.readDWORD();
+ _opaque = (bool)archive.readDWORD();
int type = archive.readDWORD();
assert(type != 0);
@@ -43,7 +43,7 @@ void PDAButtonActor::deserialize(Archive &archive) {
void PDAButtonActor::toConsole() {
debug("PDAButtonActor: _name = %s, _x = %u _y = %u _hideOnStop = %u, _opaque = %u, _commandType = %u, _arg = %s",
- _name.c_str(), _x, _y, _hideOnStop, _opaque, (int) _command.type, _command.arg.c_str());
+ _name.c_str(), _x, _y, _hideOnStop, _opaque, (int)_command.type, _command.arg.c_str());
}
void PDAButtonActor::onClick() {
diff --git a/engines/pink/objects/inventory.cpp b/engines/pink/objects/inventory.cpp
index ddf124a194..f6682f17c7 100644
--- a/engines/pink/objects/inventory.cpp
+++ b/engines/pink/objects/inventory.cpp
@@ -189,7 +189,7 @@ void InventoryMgr::showNextItem(bool direction) {
}
void InventoryMgr::loadState(Archive &archive) {
- _state = (State) archive.readByte();
+ _state = (State)archive.readByte();
_isClickedOnItem = archive.readByte();
for (uint i = 0; i < _items.size(); ++i) {
diff --git a/engines/pink/objects/sequences/sequence.cpp b/engines/pink/objects/sequences/sequence.cpp
index 3c0c69d269..7e5a3a2677 100644
--- a/engines/pink/objects/sequences/sequence.cpp
+++ b/engines/pink/objects/sequences/sequence.cpp
@@ -144,7 +144,7 @@ void SequenceAudio::start(bool loadingSave) {
Sequence::start(loadingSave);
uint index = _context->getNextItemIndex();
if (index < _items.size()) {
- SequenceItemLeaderAudio *leaderAudio = (SequenceItemLeaderAudio *) _items[index];
+ SequenceItemLeaderAudio *leaderAudio = (SequenceItemLeaderAudio *)_items[index];
_sample = leaderAudio->getSample();
}
}