mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Merge branch 'tmj-dev' into milek-dev
This commit is contained in:
@@ -123,12 +123,13 @@ TButton::Turn( bool const State ) {
|
||||
}
|
||||
}
|
||||
|
||||
void TButton::Update() {
|
||||
void TButton::Update( bool const Power ) {
|
||||
|
||||
if( ( bData != nullptr )
|
||||
&& ( *bData != m_state ) ) {
|
||||
auto const state { Power && ( bData ? *bData : m_state ) };
|
||||
|
||||
m_state = ( *bData );
|
||||
if( state != m_state ) {
|
||||
|
||||
m_state = state;
|
||||
play();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user