use atof for LOOPMS

instead of whatever its doing now
This commit is contained in:
Alug committed 2025-09-18 12:19:38 +02:00
1 parent 56fb0ee32e
commit 2ddeb3c432
1 file changed
+1 -1
+1 -1
View File
@@ -1200,7 +1200,7 @@ boolean I_LoadSong(char *data, size_t len)
else if (!strncmp(p, key3, key3len)) // is it LOOPMS=?
{
p += key3len; // skip MS=
loop_point = (float)(atoi(p) / 1000.0L); // LOOPMS works by real time, as miliseconds.
loop_point = atof(p) / 1000.f; // LOOPMS works by real time, as miliseconds.
// Everything that uses LOOPMS will work perfectly with SDL_Mixer.
}
}