aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Ad
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-06-25 16:14:28 +0200
committerEinar Johan Trøan Sømåen2012-06-25 16:14:28 +0200
commit58b8b371fe579292b41e272145c0c20ff13ab70b (patch)
tree4642a6cded2b1c9ee87814daf038449337592adc /engines/wintermute/Ad
parent4c61cf042b09a64593a8beb6e1e9d72a883a7cda (diff)
downloadscummvm-rg350-58b8b371fe579292b41e272145c0c20ff13ab70b.tar.gz
scummvm-rg350-58b8b371fe579292b41e272145c0c20ff13ab70b.tar.bz2
scummvm-rg350-58b8b371fe579292b41e272145c0c20ff13ab70b.zip
WINTERMUTE: Fix even more warnings
Diffstat (limited to 'engines/wintermute/Ad')
-rw-r--r--engines/wintermute/Ad/AdObject.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/Ad/AdObject.cpp b/engines/wintermute/Ad/AdObject.cpp
index 816821568e..896bdfdaf5 100644
--- a/engines/wintermute/Ad/AdObject.cpp
+++ b/engines/wintermute/Ad/AdObject.cpp
@@ -1143,8 +1143,8 @@ HRESULT CAdObject::DisplaySpriteAttachment(CAdObject *Attachment) {
int OrigY = Attachment->_posY;
// inherit position from owner
- Attachment->_posX = this->_posX + Attachment->_posX * ScaleX / 100.0f;
- Attachment->_posY = this->_posY + Attachment->_posY * ScaleY / 100.0f;
+ Attachment->_posX = (int)(this->_posX + Attachment->_posX * ScaleX / 100.0f);
+ Attachment->_posY = (int)(this->_posY + Attachment->_posY * ScaleY / 100.0f);
// inherit other props
Attachment->_alphaColor = this->_alphaColor;
@@ -1194,8 +1194,8 @@ HRESULT CAdObject::UpdatePartEmitter() {
float ScaleX, ScaleY;
GetScale(&ScaleX, &ScaleY);
- _partEmitter->_posX = _posX + (ScaleX / 100.0f) * _partOffsetX;
- _partEmitter->_posY = _posY + (ScaleY / 100.0f) * _partOffsetY;
+ _partEmitter->_posX = (int)(_posX + (ScaleX / 100.0f) * _partOffsetX);
+ _partEmitter->_posY = (int)(_posY + (ScaleY / 100.0f) * _partOffsetY);
}
return _partEmitter->Update();
}