mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Use doubles instead of floats for the time argument in Source:seek. This probably won't affect anything meaningfully, but in theory it's more precise.
This commit is contained in:
@@ -111,9 +111,9 @@ int ModPlugDecoder::decode()
|
||||
return r;
|
||||
}
|
||||
|
||||
bool ModPlugDecoder::seek(float s)
|
||||
bool ModPlugDecoder::seek(double s)
|
||||
{
|
||||
ModPlug_Seek(plug, (int)(s*1000.0f));
|
||||
ModPlug_Seek(plug, (int)(s*1000.0));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user