mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
line breaker cab control enhancement, minor bug fixes
This commit is contained in:
10
Event.cpp
10
Event.cpp
@@ -687,6 +687,16 @@ putvalues_event::run_() {
|
||||
m_input.data_value_2,
|
||||
loc );
|
||||
}
|
||||
else if( m_activator->ctOwner ) {
|
||||
// send the command to consist owner,
|
||||
// we're acting on presumption there's hardly ever need to issue command to unmanned vehicle
|
||||
// and the intended recipient moved between vehicles after the event was queued
|
||||
m_activator->ctOwner->PutCommand(
|
||||
m_input.data_text,
|
||||
m_input.data_value_1,
|
||||
m_input.data_value_2,
|
||||
loc );
|
||||
}
|
||||
else {
|
||||
// przekazanie do pojazdu
|
||||
m_activator->MoverParameters->PutCommand(
|
||||
|
||||
Reference in New Issue
Block a user