aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2008-04-05 16:02:28 +0000
committerTorbjörn Andersson2008-04-05 16:02:28 +0000
commit5a5d5c02e1bebde5b8ee55f7d91cd7124615606c (patch)
tree18bb09857b701a5f44ce9cae5c9694df44a6cd5d /engines
parent44ba7f97a96a7c20e71c5003357f4f6e02894831 (diff)
downloadscummvm-rg350-5a5d5c02e1bebde5b8ee55f7d91cd7124615606c.tar.gz
scummvm-rg350-5a5d5c02e1bebde5b8ee55f7d91cd7124615606c.tar.bz2
scummvm-rg350-5a5d5c02e1bebde5b8ee55f7d91cd7124615606c.zip
Fixed warning. (You shouldn't have to use floor() to simulate integer math
anyway.) svn-id: r31411
Diffstat (limited to 'engines')
-rw-r--r--engines/saga/sndres.cpp2
1 files changed, 1 insertions, 1 deletions
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) {