Fixed file not closing after require(). Changed seek() to use seconds.

This commit is contained in:
rude
2009-08-24 19:57:08 +02:00
parent de4d9bf2d4
commit 92c678ce02
10 changed files with 50 additions and 21 deletions
+2 -2
View File
@@ -85,9 +85,9 @@ namespace lullaby
return r;
}
bool ModPlugDecoder::seek(int ms)
bool ModPlugDecoder::seek(float s)
{
ModPlug_Seek(plug, ms);
ModPlug_Seek(plug, (int)(s*1000.0f));
return true;
}