01-22-2012, 09:27 PM
|
team canada
|
|
Join Date: Jul 2004
Location: Canada
Posts: 5,200
|
|
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. |
|
|