diff options
author | Christoph Mallon | 2012-03-13 10:40:41 +0100 |
---|---|---|
committer | Alyssa Milburn | 2012-03-13 15:43:36 +0100 |
commit | 75efdd2d84e21f5d3d01afcc89d61289ae87e4a2 (patch) | |
tree | f62ab385a4a0a483b894f91709dc7764bcec79ab /engines/sci/engine | |
parent | 337d5da913477889e9b2312ecce02e52c5ddf803 (diff) | |
download | scummvm-rg350-75efdd2d84e21f5d3d01afcc89d61289ae87e4a2.tar.gz scummvm-rg350-75efdd2d84e21f5d3d01afcc89d61289ae87e4a2.tar.bz2 scummvm-rg350-75efdd2d84e21f5d3d01afcc89d61289ae87e4a2.zip |
JANITORIAL: Replace (x ? false : true) by !(x).
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/kmenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kmenu.cpp b/engines/sci/engine/kmenu.cpp index 02aa1d3ece..05ba7005d7 100644 --- a/engines/sci/engine/kmenu.cpp +++ b/engines/sci/engine/kmenu.cpp @@ -94,7 +94,7 @@ reg_t kDrawMenuBar(EngineState *s, int argc, reg_t *argv) { reg_t kMenuSelect(EngineState *s, int argc, reg_t *argv) { reg_t eventObject = argv[0]; - bool pauseSound = argc > 1 ? (argv[1].isNull() ? false : true) : true; + bool pauseSound = argc <= 1 || !argv[1].isNull(); return g_sci->_gfxMenu->kernelSelect(eventObject, pauseSound); } |