aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2010-07-16 21:50:12 +0000
committerJohannes Schickel2010-07-16 21:50:12 +0000
commite75eee21e38c71ae67382ff83ce926991f58743a (patch)
treeab7b2a52fd6b7c5203b467f36800cc02853f6d80 /engines
parent38fb180edbb02d8c374f16207f595291c4948e38 (diff)
downloadscummvm-rg350-e75eee21e38c71ae67382ff83ce926991f58743a.tar.gz
scummvm-rg350-e75eee21e38c71ae67382ff83ce926991f58743a.tar.bz2
scummvm-rg350-e75eee21e38c71ae67382ff83ce926991f58743a.zip
Use "true" instead of "1" in if statements to make clang a bit more happier with -Werror.
svn-id: r50943
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/cycle.cpp4
-rw-r--r--engines/agi/op_cmd.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/agi/cycle.cpp b/engines/agi/cycle.cpp
index c185c3efb3..b7eba22298 100644
--- a/engines/agi/cycle.cpp
+++ b/engines/agi/cycle.cpp
@@ -203,7 +203,7 @@ int AgiEngine::mainCycle() {
// vars in every interpreter cycle.
//
// We run AGIMOUSE always as a side effect
- if (getFeatures() & GF_AGIMOUSE || 1) {
+ if (getFeatures() & GF_AGIMOUSE || true) {
_game.vars[28] = _mouse.x / 2;
_game.vars[29] = _mouse.y;
}
@@ -318,7 +318,7 @@ int AgiEngine::playGame() {
_game.lineUserInput = 22;
// We run AGIMOUSE always as a side effect
- if (getFeatures() & GF_AGIMOUSE || 1)
+ if (getFeatures() & GF_AGIMOUSE || true)
report("Using AGI Mouse 1.0 protocol\n");
if (getFeatures() & GF_AGIPAL)
diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp
index 072ab0114f..90a28b1042 100644
--- a/engines/agi/op_cmd.cpp
+++ b/engines/agi/op_cmd.cpp
@@ -1504,7 +1504,7 @@ void AgiEngine::cmd_print_at_v(uint8 *p) {
void AgiEngine::cmd_push_script(uint8 *p) {
// We run AGIMOUSE always as a side effect
- if (getFeatures() & GF_AGIMOUSE || 1) {
+ if (getFeatures() & GF_AGIMOUSE || true) {
_game.vars[27] = _mouse.button;
_game.vars[28] = _mouse.x / 2;
_game.vars[29] = _mouse.y;