allow short-circuiting lights logic when lights are not in use

This commit is contained in:
Glenn Maynard
2004-12-03 23:26:59 +00:00
parent c9e523ef09
commit 5f0f8a6d28
3 changed files with 7 additions and 6 deletions
+3
View File
@@ -54,6 +54,9 @@ LightsManager::~LightsManager()
void LightsManager::Update( float fDeltaTime )
{
if( !IsEnabled() )
return;
// update lights falloff
{
FOREACH_CabinetLight( cl )