mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-09-07 16:10:20 +02:00
2019-02-04 Fred Gleason <fredg@paravelsystems.com>
* Modified the PAD emission code to use the most recently started event rather than the longest running.
This commit is contained in:
parent
c83b170e6d
commit
4cadda9029
@ -18451,3 +18451,6 @@
|
||||
Length for PAD Updates'.
|
||||
* Updated the screenshot of the 'Edit Cart' dialog in the
|
||||
Operations Guide.
|
||||
2019-02-04 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Modified the PAD emission code to use the most recently
|
||||
started event rather than the longest running.
|
||||
|
@ -2875,6 +2875,10 @@ void RDLogPlay::SendNowNext()
|
||||
//
|
||||
int lines[TRANSPORT_QUANTITY];
|
||||
int running=runningEvents(lines,false);
|
||||
//
|
||||
// "Longest running" algorithm
|
||||
//
|
||||
/*
|
||||
for(int i=0;i<running;i++) {
|
||||
if((time=logLine(lines[i])->startTime(RDLogLine::Actual).
|
||||
addMSecs(logLine(lines[i])->effectiveLength()))>end_time) {
|
||||
@ -2882,6 +2886,15 @@ void RDLogPlay::SendNowNext()
|
||||
now_line=lines[i];
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
//
|
||||
// "Most recently started" algorithm
|
||||
//
|
||||
if(running>0) {
|
||||
now_line=lines[running-1];
|
||||
}
|
||||
|
||||
if((now_line>=0)&&(logLine(now_line)->nowNextEnabled())) {
|
||||
logline[0]=logLine(now_line);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user