From 5a5d5c02e1bebde5b8ee55f7d91cd7124615606c Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 5 Apr 2008 16:02:28 +0000 Subject: Fixed warning. (You shouldn't have to use floor() to simulate integer math anyway.) svn-id: r31411 --- engines/saga/sndres.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/saga') diff --git a/engines/saga/sndres.cpp b/engines/saga/sndres.cpp index fd1d09038e..9d3d4a9afa 100644 --- a/engines/saga/sndres.cpp +++ b/engines/saga/sndres.cpp @@ -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) { -- cgit v1.2.3