mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 06:39:18 +02:00
build 180622. time zone bias calculation fix, track events fix, passenger stop distance calculation fix
This commit is contained in:
11
Track.cpp
11
Track.cpp
@@ -924,9 +924,18 @@ bool TTrack::AssignForcedEvents(TEvent *NewEventPlus, TEvent *NewEventMinus)
|
||||
|
||||
void TTrack::QueueEvents( event_sequence const &Events, TDynamicObject const *Owner ) {
|
||||
|
||||
for( auto const &event : Events ) {
|
||||
if( event.second != nullptr ) {
|
||||
simulation::Events.AddToQuery( event.second, Owner );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void TTrack::QueueEvents( event_sequence const &Events, TDynamicObject const *Owner, double const Delaylimit ) {
|
||||
|
||||
for( auto const &event : Events ) {
|
||||
if( ( event.second != nullptr )
|
||||
&& ( event.second->fDelay <= -1.0 ) ) {
|
||||
&& ( event.second->fDelay <= Delaylimit) ) {
|
||||
simulation::Events.AddToQuery( event.second, Owner );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user