diff options
author | Einar Johan Trøan Sømåen | 2012-06-25 16:14:28 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-25 16:14:28 +0200 |
commit | 58b8b371fe579292b41e272145c0c20ff13ab70b (patch) | |
tree | 4642a6cded2b1c9ee87814daf038449337592adc /engines/wintermute/Sys | |
parent | 4c61cf042b09a64593a8beb6e1e9d72a883a7cda (diff) | |
download | scummvm-rg350-58b8b371fe579292b41e272145c0c20ff13ab70b.tar.gz scummvm-rg350-58b8b371fe579292b41e272145c0c20ff13ab70b.tar.bz2 scummvm-rg350-58b8b371fe579292b41e272145c0c20ff13ab70b.zip |
WINTERMUTE: Fix even more warnings
Diffstat (limited to 'engines/wintermute/Sys')
-rw-r--r-- | engines/wintermute/Sys/SysClassRegistry.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/Sys/SysClassRegistry.cpp b/engines/wintermute/Sys/SysClassRegistry.cpp index 0a41b59d35..7025e4c79a 100644 --- a/engines/wintermute/Sys/SysClassRegistry.cpp +++ b/engines/wintermute/Sys/SysClassRegistry.cpp @@ -177,7 +177,7 @@ HRESULT CSysClassRegistry::SaveTable(CBGame *Game, CBPersistMgr *persistMgr, boo counter++;
if (!quickSave) {
- Game->_indicatorProgress = 50.0f / (float)((float)_classes.size() / (float)counter);
+ Game->_indicatorProgress = (int)(50.0f / (float)((float)_classes.size() / (float)counter));
Game->DisplayContent(false);
Game->_renderer->Flip();
}
@@ -206,10 +206,10 @@ HRESULT CSysClassRegistry::LoadTable(CBGame *Game, CBPersistMgr *persistMgr) { _instanceMap.clear();
- int numClasses = persistMgr->getDWORD();
+ uint32 numClasses = persistMgr->getDWORD();
- for (int i = 0; i < numClasses; i++) {
- Game->_indicatorProgress = 50.0f / (float)((float)numClasses / (float)i);
+ for (uint32 i = 0; i < numClasses; i++) {
+ Game->_indicatorProgress = (int)(50.0f / (float)((float)numClasses / (float)i));
Game->DisplayContentSimple();
Game->_renderer->Flip();
|