Minor optimizations to terrain drawing

Changed some variable creation to minimize variable creation in the
main loop.