diff options
author | Strangerke | 2015-12-14 15:27:14 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:34:05 +0100 |
commit | 52d0243eff241d59397fe6237c1959e24d51dbb8 (patch) | |
tree | 64fcef218d4d0266e8f7d1f0371fe5a267a7a1dd /engines/lab/intro.cpp | |
parent | acaece288f4d6b903d1163d2906fa6d5c2ce84ad (diff) | |
download | scummvm-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.cpp | 16 |
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) |