Ok my compiler gives me a warning "bool roof() will always evaluate as true"
Code:
bool roof()
{
if((xxx+20) >= 182 && xxx <= 222 && (yyy-200) <= 301)
{
yyy=302;
drawlvla();
return true;
}
else
return false;
}
I don't understand this if xxx = 0; then it should return false. Because it would not be greater than or equal to 182. I understand if I used or statements this would evaluate as true since xxx would always be less than 222 or greater than 182. I have the newest version of dev c++ is this a compiler bug, or is my brain bugged? Thank you for your time.