From a43d1e6be0fd325164b47f76d0ceb6cbb0dd01d5 Mon Sep 17 00:00:00 2001 From: Kari Salminen Date: Mon, 26 May 2008 22:01:29 +0000 Subject: [PATCH] Changed floating point immediates to single precision (Silences MSVC warning C4305: '+=' : truncation from 'double' to 'float'). svn-id: r32307 --- engines/drascula/drascula.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp index ab8429b1728..d478e887c6f 100644 --- a/engines/drascula/drascula.cpp +++ b/engines/drascula/drascula.cpp @@ -1877,7 +1877,7 @@ void DrasculaEngine::salva_pantallas() { // efecto(dir_dibujo1); memcpy(copia, dir_dibujo1, 64000); - coeff += 0.1; + coeff += 0.1f; coeff2 = coeff; if (++count > 319) @@ -1885,7 +1885,7 @@ void DrasculaEngine::salva_pantallas() { 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 @@ void DrasculaEngine::salva_pantallas() { 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)