]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - plugins/entity/light.cpp
Merge commit '6e687efe8899278a955efd1e3ba4de5300f7949a' into garux-merge
[xonotic/netradiant.git] / plugins / entity / light.cpp
index 9d8b92472c5f3165f546dc4c62beb109da1246e7..018a4cf82db21e711825c0be6ab10f202d6e8086 100644 (file)
@@ -531,10 +531,12 @@ Callback<void()> m_changed;
 bool m_useCenterKey;
 
 Doom3LightRadius( const char* defaultRadius ) : m_defaultRadius( 300, 300, 300 ), m_center( 0, 0, 0 ), m_useCenterKey( false ){
-       if ( !string_parse_vector3( defaultRadius, m_defaultRadius ) ) {
+       if ( g_lightType == LIGHTTYPE_DOOM3 ){
+               if ( !string_parse_vector3( defaultRadius, m_defaultRadius ) ) {
                globalErrorStream() << "Doom3LightRadius: failed to parse default light radius\n";
-       }
+               }
        m_radius = m_defaultRadius;
+       }
 }
 
 void lightRadiusChanged( const char* value ){
@@ -655,7 +657,7 @@ void render( RenderStateFlags state ) const {
 };
 
 inline void default_extents( Vector3& extents ){
-       extents = Vector3( 8, 8, 8 );
+       extents = Vector3( 12, 12, 12 );
 }
 
 class ShaderRef