Fixed VC++ warnings
svn-id: r7652
This commit is contained in:
parent
1f616edfcd
commit
ac9a392a5b
2 changed files with 2 additions and 2 deletions
|
@ -555,7 +555,7 @@ bool ScummDebugger::Cmd_Actor(int argc, const char **argv) {
|
|||
a = &_s->_actors[actnum];
|
||||
|
||||
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);
|
||||
} else if (!strcmp(argv[2], "costume")) {
|
||||
value = atoi(argv[3]);
|
||||
|
|
|
@ -3106,7 +3106,7 @@ void Scumm::createSpecialPalette(int16 from, int16 to, int16 redScale, int16 gre
|
|||
|
||||
searchPtr = palPtr + from * 3;
|
||||
bestResult = 32000;
|
||||
currentIndex = from;
|
||||
currentIndex = (byte) from;
|
||||
|
||||
for (j = from; j < to; j++) {
|
||||
int ar = (*searchPtr++);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue