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:
Fred Gleason 2019-02-04 14:29:20 -05:00
parent c83b170e6d
commit 4cadda9029
2 changed files with 16 additions and 0 deletions

View File

@ -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.

View File

@ -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);
}