mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
fixed wrong computation of decflag in AkosRenderer::drawLimb (HE specific, bug #1416186).
svn-id: r21454
This commit is contained in:
parent
47b3a748f4
commit
575c831684
@ -483,7 +483,7 @@ byte AkosRenderer::drawLimb(const Actor *a, int limb) {
|
||||
if (_vm->_game.heversion >= 90 && cond == 0) {
|
||||
decflag = 1;
|
||||
} else if (type == 0x40000000) { // restored_bit
|
||||
decflag = (a->_heCondMask & cond) ? 1 : 0;
|
||||
decflag = (a->_heCondMask & cond) == cond ? 1 : 0;
|
||||
} else if (type == 0x80000000) { // dirty_bit
|
||||
decflag = (a->_heCondMask & cond) ? 0 : 1;
|
||||
} else {
|
||||
|
@ -418,6 +418,11 @@ bool ScummDebugger::Cmd_Actor(int argc, const char **argv) {
|
||||
}
|
||||
} else if (!strcmp(argv[2], "name")) {
|
||||
DebugPrintf("Name of actor %d: %s\n", actnum, _vm->getObjOrActorName(actnum));
|
||||
} else if (!strcmp(argv[2], "condmask")) {
|
||||
if (argc > 3) {
|
||||
a->_heCondMask = value;
|
||||
}
|
||||
DebugPrintf("Actor[%d]._heCondMask = 0x%X\n", actnum, a->_heCondMask);
|
||||
} else {
|
||||
DebugPrintf("Unknown actor command '%s'\nUse <ignoreboxes |costume> as command\n", argv[2]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user