OpenTrespasser / JurassicParkTrespasser

A git-based fork of the Jurassic Park: Trespasser source code.
101 stars 25 forks source link

Reset lighting globals when loading level #131

Closed meekee7 closed 4 years ago

meekee7 commented 4 years ago

There are some global variables that control the lighting. They can be overwritten when loading a level or by scripted actions. However, when another level is loaded afterwards, the variables are not reset. If the new level does not explicitly set these properties, it will inherit the lighting configuration of its predecessor. This bug is also listed on Trescom. The cause is that those properties are stored in global variables which are not reset to defaults when a new level is loaded.

InGen Town after loading Summit first: TPass027 TestScene Day after loading Testscene Night first: TPass028