diff options
author | Einar Johan Trøan Sømåen | 2012-07-28 23:10:33 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-28 23:10:33 +0200 |
commit | e841bf16d6b955f779e5e30535848bd650d22352 (patch) | |
tree | 843b29df10e35a22304faec81fab929251509d45 /engines/wintermute/ad | |
parent | e08a0d84a2dd4ebb312fc72b9757c303e351dbb1 (diff) | |
download | scummvm-rg350-e841bf16d6b955f779e5e30535848bd650d22352.tar.gz scummvm-rg350-e841bf16d6b955f779e5e30535848bd650d22352.tar.bz2 scummvm-rg350-e841bf16d6b955f779e5e30535848bd650d22352.zip |
WINTERMUTE: Fix a few warnings pointed out by fuzzie.
Diffstat (limited to 'engines/wintermute/ad')
-rw-r--r-- | engines/wintermute/ad/ad_entity.cpp | 2 | ||||
-rw-r--r-- | engines/wintermute/ad/ad_scene.cpp | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/engines/wintermute/ad/ad_entity.cpp b/engines/wintermute/ad/ad_entity.cpp index b6da77f971..6fea297018 100644 --- a/engines/wintermute/ad/ad_entity.cpp +++ b/engines/wintermute/ad/ad_entity.cpp @@ -1102,10 +1102,8 @@ void AdEntity::setItem(const char *itemName) { //////////////////////////////////////////////////////////////////////////
bool AdEntity::setSprite(const char *filename) {
- bool setCurrent = false;
if (_currentSprite == _sprite) {
_currentSprite = NULL;
- setCurrent = true;
}
delete _sprite;
diff --git a/engines/wintermute/ad/ad_scene.cpp b/engines/wintermute/ad/ad_scene.cpp index 859effd5c7..9a808bbb5f 100644 --- a/engines/wintermute/ad/ad_scene.cpp +++ b/engines/wintermute/ad/ad_scene.cpp @@ -1106,15 +1106,16 @@ bool AdScene::display() { //////////////////////////////////////////////////////////////////////////
bool AdScene::updateFreeObjects() {
AdGame *adGame = (AdGame *)_gameRef;
- bool is3DSet;
+ // 3D-code removed
+ // bool is3DSet;
// *** update all active objects
- is3DSet = false;
+ // is3DSet = false;
for (int i = 0; i < adGame->_objects.getSize(); i++) {
if (!adGame->_objects[i]->_active) {
continue;
}
-
+ // 3D-code removed
adGame->_objects[i]->update();
adGame->_objects[i]->_drawn = false;
}
|