use atof for LOOPMS
instead of whatever its doing now
This commit is contained in:
1 parent
56fb0ee32e
commit
2ddeb3c432
1 file changed
+1
-1
@@ -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.
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user