diff options
author | Kari Salminen | 2008-05-26 22:01:29 +0000 |
---|---|---|
committer | Kari Salminen | 2008-05-26 22:01:29 +0000 |
commit | a43d1e6be0fd325164b47f76d0ceb6cbb0dd01d5 (patch) | |
tree | 18683ed441b88efe21186c99f09d0e44954da3ea /engines/drascula/drascula.cpp | |
parent | 32eee43bbc61a5697895ec9af2ec98f7f9b5d7b9 (diff) | |
download | scummvm-rg350-a43d1e6be0fd325164b47f76d0ceb6cbb0dd01d5.tar.gz scummvm-rg350-a43d1e6be0fd325164b47f76d0ceb6cbb0dd01d5.tar.bz2 scummvm-rg350-a43d1e6be0fd325164b47f76d0ceb6cbb0dd01d5.zip |
Changed floating point immediates to single precision (Silences MSVC warning C4305: '+=' : truncation from 'double' to 'float').
svn-id: r32307
Diffstat (limited to 'engines/drascula/drascula.cpp')
-rw-r--r-- | engines/drascula/drascula.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp index ab8429b172..d478e887c6 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) |