When I load the "testlevel" in the main function though, the lighting is perfect and there is no red block. But, if I load the "menu" level, and then press New Game, the lighting messes up and the red block appears.
Is it because my script is interrupting the level loading, and causing it to mess up?