aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword1')
-rw-r--r--engines/sword1/animation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sword1/animation.cpp b/engines/sword1/animation.cpp
index a8c313f2f8..5ad84d995f 100644
--- a/engines/sword1/animation.cpp
+++ b/engines/sword1/animation.cpp
@@ -271,10 +271,10 @@ bool MoviePlayer::playVideo() {
// Look for the best color indexes to use to display the subtitles
uint32 minWeight = 0xFFFFFFFF;
uint32 weight;
- float c1Weight = 1e+30;
- float c2Weight = 1e+30;
- float c3Weight = 1e+30;
- float c4Weight = 1e+30;
+ float c1Weight = 1e+30f;
+ float c2Weight = 1e+30f;
+ float c3Weight = 1e+30f;
+ float c4Weight = 1e+30f;
byte r, g, b;
float h, s, v, hd, hsvWeight;