mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
The increased precision that we had everywhere except the UI and the interface with DCS was causing issues with ASAP creating barely negative start times. The main cause of this was that we'd compute the earliest possible TOT, it would result in, for example, 23:10.002. When we then set the QTimeEdit for the TOT, we have to round because it does not support (nor do we really want to display) sub-second values, which then caused the previously 0 start time to be -0.002. Instead, since the sub-second values aren't really interesting anyway, we now just round TOTs up and start times down. This should prevent negative start times from occurring (except when they've been manually planned as such), and also prevents start times of 00:00:01. Also rounds the package waypoint times to avoid the same issues, but it's not really important which direction we round these. Fixes https://github.com/Khopa/dcs_liberation/issues/295