[Scummvm-cvs-logs] CVS: scummvm/scumm resource.cpp,1.150,1.151
Max Horn
fingolfin at users.sourceforge.net
Mon Sep 8 17:54:05 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv10158
Modified Files:
resource.cpp
Log Message:
fix an overflow
Index: resource.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/resource.cpp,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -d -r1.150 -r1.151
--- resource.cpp 8 Sep 2003 11:29:57 -0000 1.150
+++ resource.cpp 8 Sep 2003 16:48:34 -0000 1.151
@@ -1087,7 +1087,7 @@
// of the ticks value.
if (_gameId == GID_INDY3) {
// Note: since we fix ppqn at 480, ppqn/473 is almost 1
- dw = 500000 * 256 * ppqn / 473 / ticks;
+ dw = 500000 * 256 / 473 * ppqn / ticks;
} else if (_gameId == GID_LOOM) {
dw = 500000 * ppqn / 4 / ticks;
} else {
More information about the Scummvm-git-logs
mailing list