From 51ef8a78ccc556527d58ab552b7a8b589f2c7c27 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 22 Jan 2012 12:23:55 +0200 Subject: SWORD1: Silence some MSVC warnings (conversion from double to float) --- engines/sword1/animation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/sword1') 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; -- cgit v1.2.3