Fixed tiny bug with huge performance impact on world rendering.
Merge pull request #499 from mbrotz/bugfixes

Fixed tiny bug with huge performance impact on world rendering.