Fixed problems with particles so source will compile. Fixed texture indices being wrong for the tree, although OGL still refuses to render textures on it on my machine.