mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 03:37:09 +01:00
fix: the derailment notice builds on the layout of #531: physics/derailment.h, TDynamicObject::physics
This commit is contained in:
@@ -11,7 +11,7 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include "simulation/simulationtest.h"
|
||||
|
||||
#include "application/application.h"
|
||||
#include "McZapkie/derailment.h"
|
||||
#include "physics/derailment.h"
|
||||
#include "scene/scene.h"
|
||||
#include "simulation/simulation.h"
|
||||
#include "utilities/Globals.h"
|
||||
@@ -210,7 +210,7 @@ bool test_manager::tested(TDynamicObject const &Vehicle) const
|
||||
return true;
|
||||
return std::ranges::any_of(Global.test.vehicles, [&Vehicle](std::string const &Name) {
|
||||
auto *vehicle { simulation::Vehicles.find(Name) };
|
||||
return vehicle != nullptr && vehicle->find_vehicle(coupling::coupler, [&Vehicle](TDynamicObject const *Other) { return Other == &Vehicle; }) != nullptr;
|
||||
return vehicle != nullptr && vehicle->find_vehicle(Coupling::coupler, [&Vehicle](TDynamicObject const *Other) { return Other == &Vehicle; }) != nullptr;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user