This is giving me a headache...can someone please tell me why these statements ARE NOT equivalent?
Statement 1.)
if(running_result && shell[8 * (x - 1) + (y - 1)].input_val)
running_result = true;
else
running_result = false;
Statement 2.)
running_result &= shell[8 * (x - 1) + (y - 1)].input_val;
-------------------------
The first statement works; the second does NOT. The second always evaluates to false. Why? Both of these vars are bools.