Skip to content
Permalink
Browse files

DIRECTOR: LINGO: Correctly process custom cursors code

  • Loading branch information
sev- committed Feb 9, 2020
1 parent a7a3a6b commit 469a242555d38fde5ac51d54cdb342b0a58020a3
Showing with 9 additions and 9 deletions.
  1. +9 −9 engines/director/lingo/lingo-builtins.cpp
@@ -1064,19 +1064,19 @@ void LB::b_clearGlobals(int nargs) {
}

void LB::b_cursor(int nargs) {
int mask = -1;

Datum d = g_lingo->pop();
d.toInt();

if (nargs == 2) {
d = g_lingo->pop();
d.toInt();
if (d.type == ARRAY) {
Datum sprite = d.u.farr->operator[](0);
Datum mask = d.u.farr->operator[](1);
sprite.toInt();
mask.toInt();

mask = d.u.i;
g_lingo->func_cursor(sprite.u.i, mask.u.i);
} else {
d.toInt();
g_lingo->func_cursor(d.u.i, -1);
}

g_lingo->func_cursor(d.u.i, mask);
}

void LB::b_showGlobals(int nargs) {

0 comments on commit 469a242

Please sign in to comment.
You can’t perform that action at this time.