Use float value for LOOPMS

Extra precision.
This commit is contained in:
James R 2022-02-15 14:19:10 -08:00
parent f749424de7
commit 418156bebf

View file

@ -1227,7 +1227,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.
}
}