Thread: tiles[x,y] ?
View Single Post
  #21  
Old 12-04-2005, 02:01 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote