[Scummvm-cvs-logs] SF.net SVN: scummvm: [27022] scummvm/trunk/engines/agi/agi.cpp
knakos at users.sourceforge.net
knakos at users.sourceforge.net
Wed May 30 21:49:35 CEST 2007
Revision: 27022
http://scummvm.svn.sourceforge.net/scummvm/?rev=27022&view=rev
Author: knakos
Date: 2007-05-30 12:49:33 -0700 (Wed, 30 May 2007)
Log Message:
-----------
properly direct pred. dialog's output, when started thru the event mechanism
Modified Paths:
--------------
scummvm/trunk/engines/agi/agi.cpp
Modified: scummvm/trunk/engines/agi/agi.cpp
===================================================================
--- scummvm/trunk/engines/agi/agi.cpp 2007-05-30 18:43:28 UTC (rev 27021)
+++ scummvm/trunk/engines/agi/agi.cpp 2007-05-30 19:49:33 UTC (rev 27022)
@@ -68,9 +68,16 @@
_system->quit();
break;
case Common::EVENT_PREDICTIVE_DIALOG:
- if (predictiveDialog()) {
- strcpy((char *)_game.inputBuffer, _predictiveResult);
- handleKeys(KEY_ENTER);
+ if (_game.playerControl && predictiveDialog()) {
+ if (_game.inputMode == INPUT_NORMAL) {
+ strcpy((char *)_game.inputBuffer, _predictiveResult);
+ handleKeys(KEY_ENTER);
+ } else if (_game.inputMode == INPUT_GETSTRING) {
+ strcpy(_game.strings[_stringdata.str], _predictiveResult);
+ newInputMode(INPUT_NORMAL);
+ _gfx->printCharacter(_stringdata.x + strlen(_game.strings[_stringdata.str]) + 1,
+ _stringdata.y, ' ', _game.colorFg, _game.colorBg);
+ }
}
break;
case Common::EVENT_LBUTTONDOWN:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list