From: <sag...@us...> - 2013-06-21 10:08:06
|
Revision: 2392 http://sourceforge.net/p/modplug/code/2392 Author: saga-games Date: 2013-06-21 10:07:58 +0000 (Fri, 21 Jun 2013) Log Message: ----------- [Fix] Estimated song length was a bit off due to rounding. Modified Paths: -------------- trunk/OpenMPT/mptrack/Moddoc.cpp Modified: trunk/OpenMPT/mptrack/Moddoc.cpp =================================================================== --- trunk/OpenMPT/mptrack/Moddoc.cpp 2013-06-17 22:46:04 UTC (rev 2391) +++ trunk/OpenMPT/mptrack/Moddoc.cpp 2013-06-21 10:07:58 UTC (rev 2392) @@ -2268,7 +2268,7 @@ if(songLength != std::numeric_limits<double>::infinity()) { songLength = Util::Round(songLength); - s.Format("Approximate song length: %.0fmn%02.0fs", songLength / 60.0, fmod(songLength, 60.0)); + s.Format("Approximate song length: %.0fmn%02.0fs", std::floor(songLength / 60.0), fmod(songLength, 60.0)); } else { s = "Song too long!"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |