aboutsummaryrefslogtreecommitdiff
path: root/engines/draci
diff options
context:
space:
mode:
authorFilippos Karapetis2009-09-25 07:06:55 +0000
committerFilippos Karapetis2009-09-25 07:06:55 +0000
commita74a9c6c0120b9b84df2a8ff9b430e840d472431 (patch)
treeb0e56e003a6a9d99545310c8c18e3b69f99b70eb /engines/draci
parent7106caca810bb8012f3c04edc4ef01d73215bd66 (diff)
downloadscummvm-rg350-a74a9c6c0120b9b84df2a8ff9b430e840d472431.tar.gz
scummvm-rg350-a74a9c6c0120b9b84df2a8ff9b430e840d472431.tar.bz2
scummvm-rg350-a74a9c6c0120b9b84df2a8ff9b430e840d472431.zip
Silenced some warnings
svn-id: r44329
Diffstat (limited to 'engines/draci')
-rw-r--r--engines/draci/screen.cpp2
-rw-r--r--engines/draci/script.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/draci/screen.cpp b/engines/draci/screen.cpp
index 781147806f..dbdbf15701 100644
--- a/engines/draci/screen.cpp
+++ b/engines/draci/screen.cpp
@@ -66,7 +66,7 @@ void Screen::setPalette(byte *data, uint16 start, uint16 num) {
pal.seek(start * 4);
// Copy the palette
- for (unsigned int i = start; i < start + num; ++i) {
+ for (uint16 i = start; i < start + num; ++i) {
_palette[i * 4] = pal.readByte();
_palette[i * 4 + 1] = pal.readByte();
_palette[i * 4 + 2] = pal.readByte();
diff --git a/engines/draci/script.cpp b/engines/draci/script.cpp
index db5cb80a20..9160b92c18 100644
--- a/engines/draci/script.cpp
+++ b/engines/draci/script.cpp
@@ -219,7 +219,7 @@ int Script::funcRandom(int n) {
}
int Script::funcAtBegin(int yesno) {
- return _vm->_game->isDialogueBegin() == yesno;
+ return _vm->_game->isDialogueBegin() == (bool)yesno;
}
int Script::funcLastBlock(int blockID) {