Am Samstag, 24. Februar 2007 schrieb Per Inge Mathisen: > Having experienced the randomly missing visual fog bug myself, I > thought I would look into the fog code today. That was not a happy > encounter. What a mess! > > The word 'fog' in the code is used interchangably between visual fog > and fog of war, and variables with the 'fog' name sometimes mean the > opposite of each other. It has lots of unused code paths, some rather > strange ones, and it all gets complicated by there being five ways to > set fog in Warzone: > 1) Command line parameters > 2) Configuration file options > 3) Main game menu > 4) Scripts > 5) Multiplay game menu > > You can also change it with cheat keys. The way these should interact > is far from simple. Another complication which I do not fully > understand is the difference between distance fog and depth fog. As I > read the code, you cannot enable both at the same time, but I wonder > why. > > In the attached patch, I clean up this code, and allow both depth and > distance fog to be set from scritps at the same time, if desired. I > have not seen the random bug since. > > Please add your knowledge of this code or worries over the patch to > this thread... > > - Per
Now the fog is gone entirely... Even in campaign I don't get any fog anymore. (SVN-trunk) --Dennis
pgpVQJftjup1o.pgp
Description: PGP signature
_______________________________________________ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev