mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-12 12:40:58 +00:00
DIRECTOR: LINGO: Preprocess 'play done' to 'play #done'
This commit is contained in:
parent
e570423595
commit
8a5396e6f5
@ -295,8 +295,12 @@ void Lingo::func_play(Datum &frame, Datum &movie) {
|
||||
return;
|
||||
}
|
||||
|
||||
// play "done"
|
||||
if (frame.type == STRING) {
|
||||
// play #done
|
||||
if (frame.type == SYMBOL) {
|
||||
if (!frame.u.s->equals("#done")) {
|
||||
warning("Lingo::func_play: unknown symbol: %s", frame.u.s->c_str());
|
||||
return;
|
||||
}
|
||||
if (_vm->_movieStack.empty()) { // No op if no nested movies
|
||||
return;
|
||||
}
|
||||
|
@ -387,10 +387,10 @@ Common::String preprocessPlay(Common::String in) {
|
||||
debugC(2, kDebugLingoParse, "PLAY: nexttok: %s", next.c_str());
|
||||
|
||||
if (next.equals("done")) {
|
||||
res += "\"done\""; // Turn it into STRING
|
||||
res += "#"; // Turn it into SYMBOL
|
||||
}
|
||||
|
||||
ptr += 4; // Skip "done"
|
||||
res += *ptr++; // We advance one character, so 'one' is left
|
||||
beg = ptr;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user