Fixed smooth world time transition bugs.
Takes world environment into account.