Removed debug code.
Fixed bug where TMX files wouldn't build properly if there was a non-zero Z offset.