Quote:
|
Originally Posted by Skyld
Not if onwall() is returning false.
|
Yeah well I ment if it's returning true, but you knew that allready didn't you? You just wanted to act all smart. Bravo, you get a cookie.
Quote:
|
Originally Posted by Skyld
Why the hell would you continue to do that?
That is called wasting time, space and energy.
|
No ****! That's like exactly what I mean.
If you think that ((((true == true) == true) == true) == true) is a waste, then you must think the same about (onwall() == true) because that is like (true == true).
In other words, he did:
if (true == true) //Waste.
instead of:
if (true) //Not waste.
Quote:
|
Besides, it is not exactly the same since you are making the engine evaluate the statement six times. I do not think it will fold that down.
|
So? It's only needed to get a value from the boolean ONCE, after that it's a waste, whether it's twice or more, it's the same crappy code.