mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
GLK: ADVSYS: Fix parsing input words
This commit is contained in:
parent
5f7955daa5
commit
f7e389db3b
@ -50,12 +50,13 @@ Common::String GlkInterface::readLine() {
|
||||
glk_select(&ev);
|
||||
if (ev.type == evtype_Quit)
|
||||
return "";
|
||||
else if (ev.type == evtype_LineInput)
|
||||
break;
|
||||
else if (ev.type == evtype_LineInput) {
|
||||
line[ev.val1] = '\0';
|
||||
return Common::String(line);
|
||||
}
|
||||
} while (!shouldQuit() && ev.type != evtype_Quit);
|
||||
|
||||
line[199] = '\0';
|
||||
return Common::String(line);
|
||||
return "";
|
||||
}
|
||||
|
||||
} // End of namespace AdvSys
|
||||
|
@ -590,11 +590,11 @@ bool VM::getWord(Common::String &line) {
|
||||
|
||||
if (iw._number) {
|
||||
_words.push_back(iw);
|
||||
return false;
|
||||
return true;
|
||||
} else {
|
||||
Common::String msg = Common::String::format(_("I don't know the word \"%s\".\n"), iw._text.c_str());
|
||||
print(msg);
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user