aboutsummaryrefslogtreecommitdiff
path: root/engines/lab/intro.cpp
diff options
context:
space:
mode:
authorStrangerke2015-12-14 15:27:14 +0100
committerWillem Jan Palenstijn2015-12-23 21:34:05 +0100
commit52d0243eff241d59397fe6237c1959e24d51dbb8 (patch)
tree64fcef218d4d0266e8f7d1f0371fe5a267a7a1dd /engines/lab/intro.cpp
parentacaece288f4d6b903d1163d2906fa6d5c2ce84ad (diff)
downloadscummvm-rg350-52d0243eff241d59397fe6237c1959e24d51dbb8.tar.gz
scummvm-rg350-52d0243eff241d59397fe6237c1959e24d51dbb8.tar.bz2
scummvm-rg350-52d0243eff241d59397fe6237c1959e24d51dbb8.zip
LAB: Fix the coding style of a some if/else statements
Diffstat (limited to 'engines/lab/intro.cpp')
-rw-r--r--engines/lab/intro.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/engines/lab/intro.cpp b/engines/lab/intro.cpp
index b08539711f..5c1c837da5 100644
--- a/engines/lab/intro.cpp
+++ b/engines/lab/intro.cpp
@@ -57,14 +57,12 @@ void Intro::introEatMessages() {
return;
}
- if (msg == NULL)
+ if (!msg)
return;
- else {
- if (((msg->_msgClass == MOUSEBUTTONS) && (IEQUALIFIER_RIGHTBUTTON & msg->_qualifier)) ||
- ((msg->_msgClass == RAWKEY) && (msg->_code == 27))
- )
- _quitIntro = true;
- }
+
+ if (((msg->_msgClass == MOUSEBUTTONS) && (IEQUALIFIER_RIGHTBUTTON & msg->_qualifier))
+ || ((msg->_msgClass == RAWKEY) && (msg->_code == 27)))
+ _quitIntro = true;
}
}
@@ -164,9 +162,7 @@ void Intro::doPictText(const char *filename, TextFont *msgFont, bool isScreen) {
delete[] textBuffer;
return;
- }
-
- else if (cls == MOUSEBUTTONS) {
+ } else if (cls == MOUSEBUTTONS) {
if (IEQUALIFIER_LEFTBUTTON & qualifier) {
if (end) {
if (isScreen)