From f0e131c9c3f15add381047e6f85f486d88c6d0d1 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Sat, 19 Jan 2008 10:58:43 +0000 Subject: fixed, it might overflow int32 svn-id: r30560 --- engines/scumm/imuse_digi/dimuse_sndmgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/scumm/imuse_digi') diff --git a/engines/scumm/imuse_digi/dimuse_sndmgr.cpp b/engines/scumm/imuse_digi/dimuse_sndmgr.cpp index d34d27e456..4f91f8e01d 100644 --- a/engines/scumm/imuse_digi/dimuse_sndmgr.cpp +++ b/engines/scumm/imuse_digi/dimuse_sndmgr.cpp @@ -654,7 +654,7 @@ int32 ImuseDigiSndMgr::getDataFromRegion(SoundDesc *soundDesc, int region, byte *buf = new byte[size]; assert(*buf); char fileName[24]; - int offsetMs = ((offset * 8 * 1000) / soundDesc->bits) / (soundDesc->channels * soundDesc->freq); + int offsetMs = (((offset * 8 * 10) / soundDesc->bits) / (soundDesc->channels * soundDesc->freq)) * 100; sprintf(fileName, "%s_reg%03d", soundDesc->name, region); if (scumm_stricmp(fileName, soundDesc->lastFileName) != 0) { int32 offs = 0, len = 0; -- cgit v1.2.3