mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-20 00:59:19 +02:00
build 181216. increased coupler disconnection working range, guaranteed freespot visibility range, optional alternate rotation event mode, ai vehicle startup logic enhancement, minor bug fixes
This commit is contained in:
@@ -620,8 +620,12 @@ void
|
||||
TDynamicObject::toggle_lights() {
|
||||
|
||||
if( true == SectionLightsActive ) {
|
||||
// switch all lights off
|
||||
// switch all lights off...
|
||||
for( auto §ion : Sections ) {
|
||||
// ... but skip cab sections, their lighting ignores battery state
|
||||
auto const sectionname { section.compartment->pName };
|
||||
if( sectionname.find( "cab" ) == 0 ) { continue; }
|
||||
|
||||
section.light_level = 0.0f;
|
||||
}
|
||||
SectionLightsActive = false;
|
||||
|
||||
Reference in New Issue
Block a user