View Single Post
Old 06-23-2011, 05:04 PM   #9
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,186

Submissions (19)

Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

Quote:
Originally Posted by BBQ
Now that you added the PRECISION constant, shouldn't these be return (unitScale[u]/PRECISION) and return (unitSpeed[u]/PRECISION) respectively?
Yes, they should be. Fixed the error, thanks for pointing it out.

Quote:
Also, how about using a native hashtable instead of Table in order to store reals directly and avoid all those multiplications/divisions altogether? A single hashtable won't contribute much to reaching the 256-instance limit.
Using up a native hashtable seems like such a waste since I only need 2-5 Tables. The speed of the operation shouldn't really be an issue considering all the hooks involved. However, maybe you're right, maybe this should use a native hashtable.
__________________
Anitarf is offline   Reply With Quote