Fix constant string, remove warning

This commit is contained in:
Andre Bernet
2014-02-03 17:42:38 +01:00
parent 28e9d0ee94
commit 62ad79538f
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -2264,7 +2264,7 @@ void checkSwitches()
if((states & 0x03) != (switches_states & 0x03))
warn = true;
}
else if((states & (1<<i+1)) != (switches_states & (1<<i+1)))
else if((states & (1<<(i+1))) != (switches_states & (1<<(i+1))))
warn = true;
}
}
@@ -2316,7 +2316,7 @@ void checkSwitches()
if (i == 0)
attr = ((states & 0x03) != (switches_states & 0x03)) ? INVERS : 0;
else
attr = (states & (1 << i+1)) == (switches_states & (1 << i+1)) ? 0 : INVERS;
attr = (states & (1 << (i+1))) == (switches_states & (1 << (i+1))) ? 0 : INVERS;
if(!(g_model.nSwToWarn & (1<<i)))
putsSwitches(x, 5*FH, (i>0?(i+3):(states&0x3)+1), attr);
x += 3*FW+FW/2;