mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 06:39:18 +02:00
cab controls active state visualization support, cab control initialization on cab change fix
This commit is contained in:
@@ -124,6 +124,7 @@ TButton::Turn( bool const State ) {
|
||||
}
|
||||
|
||||
void TButton::Update( bool const Power ) {
|
||||
// TODO: remove passing manually power state when LD is in place
|
||||
|
||||
auto const state { Power && ( bData ? *bData : m_state ) };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user