aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKari Salminen2007-06-28 14:33:17 +0000
committerKari Salminen2007-06-28 14:33:17 +0000
commit1a7b91b7e2a27b97f044cad7d9ac0f1179a0ace5 (patch)
tree9887cef184cb2351143986a2fec38c1f24cc2f59
parent7a709b3c79255131f0b7605e06e867bafb344e7a (diff)
downloadscummvm-rg350-1a7b91b7e2a27b97f044cad7d9ac0f1179a0ace5.tar.gz
scummvm-rg350-1a7b91b7e2a27b97f044cad7d9ac0f1179a0ace5.tar.bz2
scummvm-rg350-1a7b91b7e2a27b97f044cad7d9ac0f1179a0ace5.zip
Removed superfluous comment and converted an int to bool conversion to a more usual way.
svn-id: r27757
-rw-r--r--engines/agi/agi.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp
index 04c3b34f92..0839b7de99 100644
--- a/engines/agi/agi.cpp
+++ b/engines/agi/agi.cpp
@@ -334,10 +334,7 @@ void AgiEngine::replayImageStackCall(uint8 type, int16 p1, int16 p2, int16 p3,
case ADD_PIC:
debugC(8, kDebugLevelMain, "--- decoding picture %d ---", p1);
agiLoadResource(rPICTURE, p1);
- // Not using simply p3 or (bool) p3 for decodePicture's third
- // parameter because they give a warning C4800 with MSVC8:
- // 'int16' : forcing value to bool 'true' or 'false' (performance warning)
- _picture->decodePicture(p1, p2, p3 ? true : false);
+ _picture->decodePicture(p1, p2, p3 != 0);
break;
case ADD_VIEW:
agiLoadResource(rVIEW, p1);