Fixed VC++ warnings

svn-id: r7652
This commit is contained in:
Jamieson Christian 2003-05-18 23:45:34 +00:00
parent 1f616edfcd
commit ac9a392a5b
2 changed files with 2 additions and 2 deletions

View file

@ -555,7 +555,7 @@ bool ScummDebugger::Cmd_Actor(int argc, const char **argv) {
a = &_s->_actors[actnum]; a = &_s->_actors[actnum];
if (!strcmp(argv[2], "ignoreboxes")) { if (!strcmp(argv[2], "ignoreboxes")) {
a->ignoreBoxes = atoi(argv[3]); a->ignoreBoxes = (atoi(argv[3]) > 0);
Debug_Printf("Actor[%d].ignoreBoxes = %d\n", actnum, a->ignoreBoxes); Debug_Printf("Actor[%d].ignoreBoxes = %d\n", actnum, a->ignoreBoxes);
} else if (!strcmp(argv[2], "costume")) { } else if (!strcmp(argv[2], "costume")) {
value = atoi(argv[3]); value = atoi(argv[3]);

View file

@ -3106,7 +3106,7 @@ void Scumm::createSpecialPalette(int16 from, int16 to, int16 redScale, int16 gre
searchPtr = palPtr + from * 3; searchPtr = palPtr + from * 3;
bestResult = 32000; bestResult = 32000;
currentIndex = from; currentIndex = (byte) from;
for (j = from; j < to; j++) { for (j = from; j < to; j++) {
int ar = (*searchPtr++); int ar = (*searchPtr++);