mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
fix f5
This commit is contained in:
@@ -812,9 +812,12 @@ driver_mode::OnKeyDown(int cKey) {
|
||||
// only available in free fly mode
|
||||
break;
|
||||
|
||||
TDynamicObject *dynamic = std::get<TDynamicObject *>( simulation::Region->find_vehicle( Camera.Pos, 50, true, false ) );
|
||||
TDynamicObject *dynamic = std::get<TDynamicObject *>( simulation::Region->find_vehicle( Global.pCamera.Pos, 50, false, false ) );
|
||||
if (dynamic) {
|
||||
m_relay.post(user_command::entervehicle, 0.0, 0.0, GLFW_PRESS, 0);
|
||||
m_relay.post(user_command::entervehicle,
|
||||
( Global.ctrlState ? GLFW_MOD_CONTROL : 0 ),
|
||||
( simulation::Train ? simulation::Train->id() : 0 ),
|
||||
GLFW_PRESS, 0, dynamic->GetPosition(), &dynamic->name());
|
||||
|
||||
change_train = dynamic->name();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user