[Scummvm-cvs-logs] SF.net SVN: scummvm: [32307] scummvm/trunk/engines/drascula/drascula.cpp
buddha_ at users.sourceforge.net
buddha_ at users.sourceforge.net
Tue May 27 00:01:30 CEST 2008
Revision: 32307
http://scummvm.svn.sourceforge.net/scummvm/?rev=32307&view=rev
Author: buddha_
Date: 2008-05-26 15:01:29 -0700 (Mon, 26 May 2008)
Log Message:
-----------
Changed floating point immediates to single precision (Silences MSVC warning C4305: '+=' : truncation from 'double' to 'float').
Modified Paths:
--------------
scummvm/trunk/engines/drascula/drascula.cpp
Modified: scummvm/trunk/engines/drascula/drascula.cpp
===================================================================
--- scummvm/trunk/engines/drascula/drascula.cpp 2008-05-26 21:48:59 UTC (rev 32306)
+++ scummvm/trunk/engines/drascula/drascula.cpp 2008-05-26 22:01:29 UTC (rev 32307)
@@ -1877,7 +1877,7 @@
// efecto(dir_dibujo1);
memcpy(copia, dir_dibujo1, 64000);
- coeff += 0.1;
+ coeff += 0.1f;
coeff2 = coeff;
if (++count > 319)
@@ -1885,7 +1885,7 @@
for (int i = 0; i < 320; i++) {
tempLine[i] = (int)(sin(coeff2) * 16);
- coeff2 += 0.02;
+ coeff2 += 0.02f;
if (tempLine[i] < 0)
tempLine[i] += 200;
if (tempLine[i] > 199)
@@ -1895,7 +1895,7 @@
coeff2 = coeff;
for (int i = 0; i < 200; i++) {
tempRow[i] = (int)(sin(coeff2) * 16);
- coeff2 += 0.02;
+ coeff2 += 0.02f;
if (tempRow[i] < 0)
tempRow[i] += 320;
if (tempRow[i] > 319)
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