288 |
|
int misMatch = rtFlags ^ curFlags; |
289 |
|
// updates based on toggled flags |
290 |
|
if (misMatch & RTtraceSources) { |
291 |
+ |
int sn = nsources; |
292 |
|
if (rtFlags & RTtraceSources) { |
293 |
< |
for (int sn = 0; sn < nsources; sn++) |
293 |
> |
srcFollowed.NewBitMap(nsources); |
294 |
> |
while (sn--) { |
295 |
> |
if (source[sn].sflags & SFOLLOW) |
296 |
> |
continue; |
297 |
|
source[sn].sflags |= SFOLLOW; |
298 |
< |
} else // cannot undo this... |
299 |
< |
rtFlags |= RTtraceSources; |
298 |
> |
srcFollowed.Set(sn); |
299 |
> |
} |
300 |
> |
} else { |
301 |
> |
while (sn--) |
302 |
> |
if (srcFollowed.Check(sn)) |
303 |
> |
source[sn].sflags &= ~SFOLLOW; |
304 |
> |
srcFollowed.NewBitMap(0); |
305 |
> |
} |
306 |
|
} |
307 |
|
if (misMatch & RTdoFIFO && FlushQueue() < 0) |
308 |
|
return false; |