aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/game.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2009-07-22 07:22:12 +0000
committerEugene Sandulenko2009-07-22 07:22:12 +0000
commit1c86a986d971aaa7ef77e4251b7069fe3ee33b88 (patch)
tree672747305cfd610506221d7c1946a8d44f45cb67 /engines/draci/game.cpp
parentef37d0a9b05607141558ba358a7dfd361aa26d9e (diff)
downloadscummvm-rg350-1c86a986d971aaa7ef77e4251b7069fe3ee33b88.tar.gz
scummvm-rg350-1c86a986d971aaa7ef77e4251b7069fe3ee33b88.tar.bz2
scummvm-rg350-1c86a986d971aaa7ef77e4251b7069fe3ee33b88.zip
Fix warnings
svn-id: r42653
Diffstat (limited to 'engines/draci/game.cpp')
-rw-r--r--engines/draci/game.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp
index 360375f0b8..39e4c39f71 100644
--- a/engines/draci/game.cpp
+++ b/engines/draci/game.cpp
@@ -195,7 +195,7 @@ void Game::loop() {
// the current height of the dragon's sprite
// We also need to do this before we change the frames' scaled dimensions
// so setRelative() can correctly delete the old frame
- y -= scaleY * height;
+ y -= (int)(scaleY * height);
anim->setRelative(x, y);
// Set the scaled dimensions for all frames
@@ -203,8 +203,8 @@ void Game::loop() {
frame = anim->getFrame(i);
// Calculate scaled dimensions
- uint scaledWidth = scaleX * frame->getWidth();
- uint scaledHeight = scaleY * frame->getHeight();
+ uint scaledWidth = (uint)(scaleX * frame->getWidth());
+ uint scaledHeight = (uint)(scaleY * frame->getHeight());
frame->setScaled(scaledWidth, scaledHeight);
}
@@ -386,8 +386,8 @@ int Game::loadAnimation(uint animNum, uint z) {
uint scaledWidth = animationReader.readUint16LE();
uint scaledHeight = animationReader.readUint16LE();
byte mirror = animationReader.readByte();
- uint sample = animationReader.readUint16LE();
- uint freq = animationReader.readUint16LE();
+ /* uint sample = */ animationReader.readUint16LE();
+ /* uint freq = */ animationReader.readUint16LE();
uint delay = animationReader.readUint16LE();
BAFile *spriteFile = _vm->_spritesArchive->getFile(spriteNum);