diff options
author | Borja Lorente | 2016-07-14 00:18:08 +0200 |
---|---|---|
committer | Borja Lorente | 2016-08-14 18:55:16 +0200 |
commit | 8162483026ec52476a1106e72259c84e5476fd2d (patch) | |
tree | 46515e4af1cb9ba015d7d05f60bdf53a40a06256 /engines/macventure/world.cpp | |
parent | dad1edcef0e5b95b0d4b09e97c2045a3b5ba61f3 (diff) | |
download | scummvm-rg350-8162483026ec52476a1106e72259c84e5476fd2d.tar.gz scummvm-rg350-8162483026ec52476a1106e72259c84e5476fd2d.tar.bz2 scummvm-rg350-8162483026ec52476a1106e72259c84e5476fd2d.zip |
MACVENTURE: Add text input logic
Diffstat (limited to 'engines/macventure/world.cpp')
-rw-r--r-- | engines/macventure/world.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/macventure/world.cpp b/engines/macventure/world.cpp index ec20ba6b20..e247404eb6 100644 --- a/engines/macventure/world.cpp +++ b/engines/macventure/world.cpp @@ -156,6 +156,9 @@ void World::releaseChildren(ObjID objID) { } Common::String World::getText(ObjID objID, ObjID source, ObjID target) { + if (objID & 0x8000){ + return _engine->getUserInput(); + } TextAsset text = TextAsset(_engine, objID, source, target, _gameText, _engine->isOldText(), _engine->getDecodingHuffman()); return *text.decode(); @@ -169,7 +172,7 @@ bool World::isObjDraggable(ObjID objID) { } bool World::intersects(ObjID objID, Common::Rect rect) { - return _engine->getObjBounds(objID).intersects(rect); + return _engine->getObjBounds(objID).intersects(rect); } bool World::loadStartGameFileName() { |