View Single Post
  #8  
Old 01-22-2012, 09:27 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
You can clean up your code quite a bit by:

1. Reducing the amount of math you do in an if statement.
2. temp.img = findimg(1004); then instead of using findimg(1004) just use your variable reference instead.
3. Same idea as 2 but you do the same calculation numerous times, do it once and store the value in a variable for re-use it instead.
__________________
Quote:
Reply With Quote