Fixed warning. (You shouldn't have to use floor() to simulate integer math

anyway.)

svn-id: r31411
This commit is contained in:
Torbjörn Andersson 2008-04-05 16:02:28 +00:00
parent 44ba7f97a9
commit 5a5d5c02e1

View File

@ -186,7 +186,7 @@ bool SndRes::load(ResourceContext *context, uint32 resourceId, SoundBuffer &buff
if (_vm->getGameType() == GType_IHNM && _vm->isMacResources()) {
Common::File soundFile;
char soundFileName[40];
int dirIndex = floor((float)(resourceId / 64));
int dirIndex = resourceId / 64;
if ((context->fileType & GAME_VOICEFILE) != 0) {
if (_voiceSerial == 0) {