[Scummvm-cvs-logs] SF.net SVN: scummvm: [31411] scummvm/trunk/engines/saga/sndres.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Sat Apr 5 18:02:28 CEST 2008
Revision: 31411
http://scummvm.svn.sourceforge.net/scummvm/?rev=31411&view=rev
Author: eriktorbjorn
Date: 2008-04-05 09:02:28 -0700 (Sat, 05 Apr 2008)
Log Message:
-----------
Fixed warning. (You shouldn't have to use floor() to simulate integer math
anyway.)
Modified Paths:
--------------
scummvm/trunk/engines/saga/sndres.cpp
Modified: scummvm/trunk/engines/saga/sndres.cpp
===================================================================
--- scummvm/trunk/engines/saga/sndres.cpp 2008-04-05 14:28:24 UTC (rev 31410)
+++ scummvm/trunk/engines/saga/sndres.cpp 2008-04-05 16:02:28 UTC (rev 31411)
@@ -186,7 +186,7 @@
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) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list