From c4fc0cee96ed4e287385fdb75d6c81f0d4a552dc Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 18 Feb 2014 02:34:17 +0100 Subject: AGOS: Make GPL headers consistent in themselves. --- engines/agos/verb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/agos/verb.cpp') diff --git a/engines/agos/verb.cpp b/engines/agos/verb.cpp index f5b57a01c8..31e3211304 100644 --- a/engines/agos/verb.cpp +++ b/engines/agos/verb.cpp @@ -8,12 +8,12 @@ * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -- cgit v1.2.3 From afd21ac388e157238515b58f93f67aa9d4f3ac7c Mon Sep 17 00:00:00 2001 From: Kirben Date: Sat, 1 Mar 2014 20:11:40 +1100 Subject: AGOS: Enable verb display in Simon the Sorcerer 2. --- engines/agos/verb.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'engines/agos/verb.cpp') diff --git a/engines/agos/verb.cpp b/engines/agos/verb.cpp index 31e3211304..45dbfd0840 100644 --- a/engines/agos/verb.cpp +++ b/engines/agos/verb.cpp @@ -216,7 +216,14 @@ void AGOSEngine_Simon2::clearName() { return; } - AGOSEngine_Simon1::clearName(); + if (_currentVerbBox == _lastVerbOn) + return; + + resetNameWindow(); + _lastVerbOn = _currentVerbBox; + + if (_currentVerbBox != NULL && !(_currentVerbBox->flags & kBFBoxDead)) + printVerbOf(_currentVerbBox->id); } void AGOSEngine_Simon1::clearName() { -- cgit v1.2.3 From 901eeea62e679e6b657bf2301adbc9d4c01a9cb1 Mon Sep 17 00:00:00 2001 From: Kirben Date: Sat, 1 Mar 2014 22:54:18 +1100 Subject: AGOS: Convert verb ids for Simon the Sorcerer 2. --- engines/agos/verb.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/agos/verb.cpp') diff --git a/engines/agos/verb.cpp b/engines/agos/verb.cpp index 45dbfd0840..fb3878381f 100644 --- a/engines/agos/verb.cpp +++ b/engines/agos/verb.cpp @@ -249,12 +249,18 @@ void AGOSEngine::clearName() { resetNameWindow(); } +static const byte convertVerbID[9] = { + 0, 1, 5, 11, 8, 7, 10, 3, 2 +}; + void AGOSEngine::printVerbOf(uint hitarea_id) { const char *txt; const char * const *verb_names; const char * const *verb_prep_names; hitarea_id -= 101; + if (getGameType() == GType_SIMON2) + hitarea_id = convertVerbID[hitarea_id]; if (_showPreposition) { switch (_language) { -- cgit v1.2.3