From: <re...@us...> - 2005-02-18 21:23:03
|
Update of /cvsroot/crystal/CS/plugins/engine/3d In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4695/plugins/engine/3d Modified Files: light.h Log Message: res added a Jam helper to split space-separated vars into a list. res added the Win32RcFlags rule to the Jam system to allow passing of flags to the resource compiler. res fixed the level loader to initialize the light direction with a non-0.0f vector. res changed csLight::SetDirection() to refuse directions with 0 length. Index: light.h =================================================================== RCS file: /cvsroot/crystal/CS/plugins/engine/3d/light.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- light.h 16 Feb 2005 08:34:00 -0000 1.5 +++ light.h 18 Feb 2005 21:22:54 -0000 1.6 @@ -343,7 +343,7 @@ { return direction; } /// Set the light direction. Used for directional and spotlight. void SetDirection (const csVector3& v) - { direction = v.Unit (); } + { if (v.IsZero()) return; direction = v.Unit (); } /** * Get the spotlight fall-off coefficients. First is cosine of |