Turn lights out on exit (#1646)
* Add LightsDriver::reset Function will reset all lights to off Function needs to be called by each of the driver implementations as needed during destruction * Reset lights to off on exit
This commit is contained in:
committed by
Colby Klein
parent
bdaabb3525
commit
1369c1fb39
@@ -11,6 +11,11 @@ LightsDriver_Export::LightsDriver_Export()
|
||||
memset( &m_State, 0, sizeof(m_State) );
|
||||
}
|
||||
|
||||
LightsDriver_Export::~LightsDriver_Export()
|
||||
{
|
||||
LightsDriver::reset();
|
||||
}
|
||||
|
||||
void LightsDriver_Export::Set( const LightsState *ls )
|
||||
{
|
||||
m_Lock.Lock();
|
||||
|
||||
Reference in New Issue
Block a user