Silenced some warnings
svn-id: r44329
This commit is contained in:
parent
7106caca81
commit
a74a9c6c01
2 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ void Screen::setPalette(byte *data, uint16 start, uint16 num) {
|
||||||
pal.seek(start * 4);
|
pal.seek(start * 4);
|
||||||
|
|
||||||
// Copy the palette
|
// 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] = pal.readByte();
|
||||||
_palette[i * 4 + 1] = pal.readByte();
|
_palette[i * 4 + 1] = pal.readByte();
|
||||||
_palette[i * 4 + 2] = pal.readByte();
|
_palette[i * 4 + 2] = pal.readByte();
|
||||||
|
|
|
@ -219,7 +219,7 @@ int Script::funcRandom(int n) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int Script::funcAtBegin(int yesno) {
|
int Script::funcAtBegin(int yesno) {
|
||||||
return _vm->_game->isDialogueBegin() == yesno;
|
return _vm->_game->isDialogueBegin() == (bool)yesno;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Script::funcLastBlock(int blockID) {
|
int Script::funcLastBlock(int blockID) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue