The site (listed in the first post) that I got most of the original code from only used the stack.. But for some reason that method would not compile.. so I just used malloc
![grin grin](/ubb7/images/graemlins/default_dark/grin.gif)
But for the purposes I am using it for.. Performance is pretty much irrelevant unless the program is REALLY slow (I'm talking ~ 5fps) It currently runs at and around 400(with a level and entities+such).
As for evilSOB's code... I think I'll leave that to him to explain
![grin grin](/ubb7/images/graemlins/default_dark/grin.gif)