Quote:
|
Originally Posted by Fox1545
Because CPU time is less expensive than scripter time.
|
Wrong answer.
You use CPU time calculating a constant because each of the numbers in the calculation represents something important. Think about it, if you were going to change the tile you wanted to check for in the future, would you rather change one number in an equation, or try to remember the equation you used, and then put the appropriate number back in to it?
The only reason you would use a
constant in this case, would be because you are saving yourself from typing (and the CPU calculating) that more than once.