aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Sys
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-09 02:50:15 +0200
committerEinar Johan Trøan Sømåen2012-07-09 02:50:15 +0200
commit5224ebef2c8013bc9ff5cc6f9bdefbcf635b456c (patch)
treeba1c7248ce50a7ce6c9b00f566d3df21f713d712 /engines/wintermute/Sys
parent0273e495e1495d6abbcac4dde4cfa7e6ca2c29d7 (diff)
downloadscummvm-rg350-5224ebef2c8013bc9ff5cc6f9bdefbcf635b456c.tar.gz
scummvm-rg350-5224ebef2c8013bc9ff5cc6f9bdefbcf635b456c.tar.bz2
scummvm-rg350-5224ebef2c8013bc9ff5cc6f9bdefbcf635b456c.zip
WINTERMUTE: Silence most warnings
Diffstat (limited to 'engines/wintermute/Sys')
-rw-r--r--engines/wintermute/Sys/SysClassRegistry.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/Sys/SysClassRegistry.cpp b/engines/wintermute/Sys/SysClassRegistry.cpp
index 59528f13f1..c29bc19578 100644
--- a/engines/wintermute/Sys/SysClassRegistry.cpp
+++ b/engines/wintermute/Sys/SysClassRegistry.cpp
@@ -244,7 +244,7 @@ HRESULT CSysClassRegistry::saveInstances(CBGame *Game, CBPersistMgr *persistMgr,
if (!quickSave) {
if (counter % 20 == 0) {
- Game->_indicatorProgress = 50 + 50.0f / (float)((float)_classes.size() / (float)counter);
+ Game->_indicatorProgress = (int)(50.0f + 50.0f / (float)((float)_classes.size() / (float)counter));
Game->displayContent(false);
Game->_renderer->flip();
}
@@ -264,7 +264,7 @@ HRESULT CSysClassRegistry::loadInstances(CBGame *Game, CBPersistMgr *persistMgr)
for (int i = 0; i < numInstances; i++) {
if (i % 20 == 0) {
- Game->_indicatorProgress = 50 + 50.0f / (float)((float)numInstances / (float)i);
+ Game->_indicatorProgress = (int)(50.0f + 50.0f / (float)((float)numInstances / (float)i));
Game->displayContentSimple();
Game->_renderer->flip();
}