| | 4504 | if(!deleteMap.isEmpty()) |
| | 4505 | { |
| | 4506 | // Lower bound will first the lowest value equal or greater to framesPlayed. |
| | 4507 | // There are only four possible values: |
| | 4508 | // lower_bound == end |
| | 4509 | // There is no value higher than framesPlayed, thus we want --end (unless |
| | 4510 | // of course there is nothing in deleteMap) |
| | 4511 | // lower_bound == start |
| | 4512 | // The first value is greater than (or equal) to framesplayed - use it. |
| | 4513 | // *lower_bound == framesPlayed |
| | 4514 | // Enough said |
| | 4515 | // else |
| | 4516 | // The value lies between lower_bound and it predecessor - find |
| | 4517 | // which is closer to framesPlayed |