mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 03:10:22 +00:00
DIRECTOR: LINGO: Replace incorrect codeFuncs
This commit is contained in:
parent
542c702d8f
commit
8253584895
@ -3098,7 +3098,7 @@ yyreduce:
|
||||
#line 676 "engines/director/lingo/lingo-gr.y"
|
||||
{
|
||||
Common::String open("open");
|
||||
g_lingo->codeFunc(&open, 2); }
|
||||
g_lingo->codeCmd(&open, 2); }
|
||||
#line 3103 "engines/director/lingo/lingo-gr.cpp"
|
||||
break;
|
||||
|
||||
@ -3106,7 +3106,7 @@ yyreduce:
|
||||
#line 679 "engines/director/lingo/lingo-gr.y"
|
||||
{
|
||||
Common::String open("open");
|
||||
g_lingo->codeFunc(&open, 1); }
|
||||
g_lingo->codeCmd(&open, 1); }
|
||||
#line 3111 "engines/director/lingo/lingo-gr.cpp"
|
||||
break;
|
||||
|
||||
@ -3282,7 +3282,7 @@ yyreduce:
|
||||
#line 759 "engines/director/lingo/lingo-gr.y"
|
||||
{
|
||||
g_lingo->codeSetImmediate(false);
|
||||
g_lingo->codeFunc((yyvsp[-2].s), (yyvsp[0].narg));
|
||||
g_lingo->codeCmd((yyvsp[-2].s), (yyvsp[0].narg));
|
||||
delete (yyvsp[-2].s); }
|
||||
#line 3288 "engines/director/lingo/lingo-gr.cpp"
|
||||
break;
|
||||
|
@ -675,10 +675,10 @@ proc: tPUT expr { g_lingo->code1(LC::c_printtop); }
|
||||
| tINSTANCE { inArgs(); } instancelist { inLast(); }
|
||||
| tOPEN expr tWITH expr {
|
||||
Common::String open("open");
|
||||
g_lingo->codeFunc(&open, 2); }
|
||||
g_lingo->codeCmd(&open, 2); }
|
||||
| tOPEN expr {
|
||||
Common::String open("open");
|
||||
g_lingo->codeFunc(&open, 1); }
|
||||
g_lingo->codeCmd(&open, 1); }
|
||||
| ID[func] '(' ID[method] ')' {
|
||||
g_lingo->code1(LC::c_lazyeval);
|
||||
g_lingo->codeString($method->c_str());
|
||||
@ -758,7 +758,7 @@ playfunc: tPLAY expr { // "play #done" is also caught by this
|
||||
g_lingo->code1(LC::c_play); }
|
||||
| tPLAYACCEL { g_lingo->codeSetImmediate(true); } arglist {
|
||||
g_lingo->codeSetImmediate(false);
|
||||
g_lingo->codeFunc($tPLAYACCEL, $arglist);
|
||||
g_lingo->codeCmd($tPLAYACCEL, $arglist);
|
||||
delete $tPLAYACCEL; }
|
||||
|
||||
// macro
|
||||
|
Loading…
Reference in New Issue
Block a user