Skip to content

Commit

Permalink
DIRECTOR: LINGO: IMplement kTheScoreColor STUB in Lingo::getTheEntity()
Browse files Browse the repository at this point in the history
  • Loading branch information
r41k0u committed Jun 20, 2022
1 parent 271f2ae commit eb1585d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/director/lingo/lingo-the.cpp
Expand Up @@ -1365,7 +1365,8 @@ Datum Lingo::getTheSprite(Datum &id1, int field) {
d.u.i = channel->getBbox().right;
break;
case kTheScoreColor:
warning("STUB: Lingo::getTheSprite(): Unprocessed getting field \"%s\" of sprite", field2str(field));
//Check the last 3 bits of the _colorcode byte as value lies in 0 to 5
d.u.i = (int)(sprite->_colorcode & 0x7);
break;
case kTheScriptNum:
warning("STUB: Lingo::getTheSprite(): Unprocessed getting field \"%s\" of sprite", field2str(field));
Expand Down

0 comments on commit eb1585d

Please sign in to comment.