aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects
diff options
context:
space:
mode:
authorEugene Sandulenko2018-06-20 14:25:12 +0200
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit9c176c57023cc77c82a73e533e4ace59d2529f8d (patch)
tree6bdd54d8087226685b0646790504c40334be2fde /engines/pink/objects
parentaa8849f123160429a91083bd4be11005981ff3d2 (diff)
downloadscummvm-rg350-9c176c57023cc77c82a73e533e4ace59d2529f8d.tar.gz
scummvm-rg350-9c176c57023cc77c82a73e533e4ace59d2529f8d.tar.bz2
scummvm-rg350-9c176c57023cc77c82a73e533e4ace59d2529f8d.zip
PINK: Format 'else' statement oneliners
Diffstat (limited to 'engines/pink/objects')
-rw-r--r--engines/pink/objects/actors/lead_actor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/pink/objects/actors/lead_actor.cpp b/engines/pink/objects/actors/lead_actor.cpp
index 4d07106cbb..847aa00ed2 100644
--- a/engines/pink/objects/actors/lead_actor.cpp
+++ b/engines/pink/objects/actors/lead_actor.cpp
@@ -254,7 +254,8 @@ void LeadActor::onRightButtonClick(const Common::Point point) {
void LeadActor::onMouseMove(Common::Point point) {
if (_state != kPDA)
updateCursor(point);
- else _page->getGame()->getPdaMgr().onMouseMove(point);
+ else
+ _page->getGame()->getPdaMgr().onMouseMove(point);
}
void LeadActor::onMouseOver(const Common::Point point, CursorMgr *mgr) {
@@ -464,8 +465,9 @@ void PubPink::updateCursor(const Common::Point point) {
_cursorMgr->setCursor(kClickableFirstFrameCursor, point, Common::String());
} else
_cursorMgr->setCursor(kDefaultCursor, point, Common::String());
+ } else {
+ LeadActor::updateCursor(point);
}
- else LeadActor::updateCursor(point);
}
bool PubPink::sendUseClickMessage(Actor *actor) {