diff --git a/source/SkyXEngine.h b/source/SkyXEngine.h index dd76195a8519e970cc9ae31e00bfbb308a12b99e..778246d3e4625196db8a78ccf5cafd3a2b53a12a 100644 --- a/source/SkyXEngine.h +++ b/source/SkyXEngine.h @@ -292,7 +292,7 @@ QT стиль документирования (!) и QT_AUTOBRIEF - корот #ifndef __SKYXENGINE_H #define __SKYXENGINE_H -#define SKYXENGINE_VERSION "X.8.0-dev" +#define SKYXENGINE_VERSION "X.8.1-dev" #define SKYXENGINE_VERSION4EDITORS "SkyXEngine version " ## SKYXENGINE_VERSION diff --git a/source/game/LightSun.cpp b/source/game/LightSun.cpp index 8bbc861a844759183a1bb1aa95df57019f6d343a..5c132435d6e896065325bf316f9475fc076da69b 100644 --- a/source/game/LightSun.cpp +++ b/source/game/LightSun.cpp @@ -21,7 +21,6 @@ CLightSun::CLightSun(CEntityManager * pMgr):BaseClass(pMgr) if(m_pLightSystem) { m_pLight = m_pSun = m_pLightSystem->newSun(); - //m_pLight->setDistance(m_fDist); m_pLight->setColor(float4(m_vColor, m_fDist)); } } diff --git a/source/light/LightSystem.cpp b/source/light/LightSystem.cpp index 24615237e24dac39749deb63581a875bc0672473..899267028710028fddd417eebe168109f2f7ec2c 100644 --- a/source/light/LightSystem.cpp +++ b/source/light/LightSystem.cpp @@ -362,6 +362,7 @@ void CLightSystem::destroySun(IXLightSun *pLight) { assert(m_pSun == pLight); _deleteLight(m_pSun); + m_pSun = NULL; } void CLightSystem::destroyPoint(IXLightPoint *_pLight) {