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/sword25 | |
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/sword25')
-rw-r--r-- | engines/sword25/kernel/inputpersistenceblock.cpp | 2 | ||||
-rw-r--r-- | engines/sword25/script/luabindhelper.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/kernel/inputpersistenceblock.cpp b/engines/sword25/kernel/inputpersistenceblock.cpp index cdce539c31..0fe5d88b80 100644 --- a/engines/sword25/kernel/inputpersistenceblock.cpp +++ b/engines/sword25/kernel/inputpersistenceblock.cpp @@ -86,7 +86,7 @@ void InputPersistenceBlock::read(bool &value) { if (checkMarker(BOOL_MARKER)) { uint uintBool = READ_LE_UINT32(_iter); _iter += 4; - value = uintBool == 0 ? false : true; + value = uintBool != 0; } else { value = false; } diff --git a/engines/sword25/script/luabindhelper.h b/engines/sword25/script/luabindhelper.h index 0cb6d37bdc..5223d4440e 100644 --- a/engines/sword25/script/luabindhelper.h +++ b/engines/sword25/script/luabindhelper.h @@ -40,7 +40,7 @@ namespace Sword25 { #define lua_pushbooleancpp(L, b) (lua_pushboolean(L, b ? 1 : 0)) -#define lua_tobooleancpp(L, i) (lua_toboolean(L, i) == 0 ? false : true) +#define lua_tobooleancpp(L, i) (lua_toboolean(L, i) != 0) struct lua_constant_reg { const char *Name; |