From a9d947135761190b7fc26941223151d6839eeafc Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 17 Aug 2010 11:02:02 +0000 Subject: SAGA: fix warning svn-id: r52150 --- engines/saga/scene.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/saga') diff --git a/engines/saga/scene.cpp b/engines/saga/scene.cpp index d7ee037c50..2887d79693 100644 --- a/engines/saga/scene.cpp +++ b/engines/saga/scene.cpp @@ -987,8 +987,8 @@ void Scene::processSceneResources() { size_t resourceDataLength; const byte *palPointer; size_t i; - SAGAResourceTypes *types; - int typesCount; + SAGAResourceTypes *types = 0; + int typesCount = 0; SAGAResourceTypes resType; getResourceTypes(types, typesCount); -- cgit v1.2.3 From c81f009e8feada22ffe62006fa0e1d6d21f510ee Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 14 Sep 2010 22:16:31 +0000 Subject: SAGA: Fix audio flags for VOC sounds This is a regression from r43470 and fixes the speech in the intro. Bug #3065113. svn-id: r52727 --- engines/saga/sndres.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/saga') diff --git a/engines/saga/sndres.cpp b/engines/saga/sndres.cpp index a27608dcf5..a163fdfa2b 100644 --- a/engines/saga/sndres.cpp +++ b/engines/saga/sndres.cpp @@ -331,6 +331,8 @@ bool SndRes::load(ResourceContext *context, uint32 resourceId, SoundBuffer &buff if (onlyHeader) free(data); buffer.flags |= Audio::FLAG_UNSIGNED; + buffer.flags &= ~Audio::FLAG_16BITS; + buffer.flags &= ~Audio::FLAG_STEREO; } if (result) { -- cgit v1.2.3 From 6588398ce6fab85e287b10c2781d3797d7639cb9 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 15 Sep 2010 22:00:20 +0000 Subject: MIDI: Send a reset MIDI device signal on startup. This is currently done in the engine code. I adapted AGI, AGOS, DRACI, GROOVIE, LURE, MADE, QUEEN, SAGA, SKY, TINSEL and TOUCHE to send a reset device on startup. The sound output still works fine (started up a game from every engine), so this should hopefully not introduce any regressions. As far as I can tell it seems that SCUMM does send a proper device reset, so I did not touch it. KYRA only sends a proper reset for MT-32 currently. I am not sure about SCI though. This fixes bug #3066826 "SIMON: MIDI notes off when using RTL after SCI". svn-id: r52736 --- engines/saga/music.cpp | 13 +++++++++++++ engines/saga/music.h | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'engines/saga') diff --git a/engines/saga/music.cpp b/engines/saga/music.cpp index e4a16e27da..eb79132495 100644 --- a/engines/saga/music.cpp +++ b/engines/saga/music.cpp @@ -60,6 +60,19 @@ MusicDriver::~MusicDriver() { delete _driver; } +int MusicDriver::open() { + int retValue = _driver->open(); + if (retValue) + return retValue; + + if (_nativeMT32) + _driver->sendMT32Reset(); + else + _driver->sendGMReset(); + + return 0; +} + void MusicDriver::setVolume(int volume) { volume = CLIP(volume, 0, 255); diff --git a/engines/saga/music.h b/engines/saga/music.h index 5cce3d4c04..e3d5723145 100644 --- a/engines/saga/music.h +++ b/engines/saga/music.h @@ -57,7 +57,7 @@ public: void setGM(bool isGM) { _isGM = isGM; } //MidiDriver interface implementation - int open() { return _driver->open(); } + int open(); void close() { _driver->close(); } void send(uint32 b); -- cgit v1.2.3 From c91a07229a8bd841e6b6e77d977254c388a2e407 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 18 Sep 2010 10:55:16 +0000 Subject: JANITORIAL: Removed most punctuation at end of warning() and error() Our warning() and error() functions always add an exclamation mark to the end of the message anyway. svn-id: r52791 --- engines/saga/font.cpp | 2 +- engines/saga/font.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/saga') diff --git a/engines/saga/font.cpp b/engines/saga/font.cpp index 5b7b7289eb..9589c68f90 100644 --- a/engines/saga/font.cpp +++ b/engines/saga/font.cpp @@ -123,7 +123,7 @@ void Font::loadFont(uint32 fontResourceId) { } if (readS.pos() != FONT_DESCSIZE) { - error("Invalid font resource size."); + error("Invalid font resource size"); } font->normal.font = (byte*)malloc(fontResourceLength - FONT_DESCSIZE); diff --git a/engines/saga/font.h b/engines/saga/font.h index d8b1da30b9..1b9f290a1b 100644 --- a/engines/saga/font.h +++ b/engines/saga/font.h @@ -186,7 +186,7 @@ class Font { void validate(FontId fontId) { if (!valid(fontId)) { - error("Font::validate: Invalid font id."); + error("Font::validate: Invalid font id"); } } bool valid(FontId fontId) { -- cgit v1.2.3 From 64f1fc23234256fc9aedccbde3d360efe2e99d78 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 19 Sep 2010 08:18:25 +0000 Subject: SAGA: Fixed bug #3068840 - "ITE: ScummVM crashes when talking on the ferry" svn-id: r52799 --- engines/saga/font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/saga') diff --git a/engines/saga/font.cpp b/engines/saga/font.cpp index 9589c68f90..47f1a122c0 100644 --- a/engines/saga/font.cpp +++ b/engines/saga/font.cpp @@ -610,7 +610,7 @@ void Font::textDrawRect(FontId fontId, const char *text, const Common::Rect &rec } w_total = 0; len_total = 0; - if (wc == 0) { + if (wc == 0 && measurePointer) { searchPointer = measurePointer + 1; } wc = 0; -- cgit v1.2.3 From 5d1e26d804dd11ec35f6c96f1ab8fe1378d8ede9 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 28 Sep 2010 04:53:38 +0000 Subject: SAGA: Initialise _driverType svn-id: r52922 --- engines/saga/music.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/saga') diff --git a/engines/saga/music.cpp b/engines/saga/music.cpp index eb79132495..199b0dfd8a 100644 --- a/engines/saga/music.cpp +++ b/engines/saga/music.cpp @@ -49,6 +49,7 @@ MusicDriver::MusicDriver() : _isGM(false) { MidiDriver::DeviceHandle dev = MidiDriver::detectDevice(MDT_MIDI | MDT_ADLIB | MDT_PREFER_GM); _driver = MidiDriver::createMidi(dev); + _driverType = MidiDriver::getMusicType(dev); if (isMT32()) _driver->property(MidiDriver::PROP_CHANNEL_MASK, 0x03FE); -- cgit v1.2.3 From 2d82cc385ddc87c9be0f3799e9d06e60640e6ac2 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 28 Sep 2010 18:15:25 +0000 Subject: SAGA: Fix an ITE intro regression (Possibly related to bug #3076822 - ITE: Dialog repeats in intro.) The p2_a.voc patch file wasn't played. This was because the engine first loaded p2_a.voc as a replacement for voice resource 4. Then it tried to load p2_a.iaf and, when it failed, removed the patch data for the very same resource. Now it only tries to read a patch if it hasn't already found a patch for the resource. (There may have been a similar bug in the end credits as well.) svn-id: r52928 --- engines/saga/resource.cpp | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'engines/saga') diff --git a/engines/saga/resource.cpp b/engines/saga/resource.cpp index cf7474adc1..646ee1d629 100644 --- a/engines/saga/resource.cpp +++ b/engines/saga/resource.cpp @@ -165,18 +165,21 @@ bool ResourceContext::load(SagaEngine *vm, Resource *resource) { if ((patchDescription->fileType & _fileType) != 0) { if (patchDescription->resourceId < _table.size()) { resourceData = &_table[patchDescription->resourceId]; - resourceData->patchData = new PatchData(patchDescription->fileName); - if (resourceData->patchData->_patchFile->open(patchDescription->fileName)) { - resourceData->offset = 0; - resourceData->size = resourceData->patchData->_patchFile->size(); - // ITE uses several patch files which are loaded and then not needed - // anymore (as they're in memory), so close them here. IHNM uses only - // 1 patch file, which is reused, so don't close it - if (vm->getGameId() == GID_ITE) - resourceData->patchData->_patchFile->close(); - } else { - delete resourceData->patchData; - resourceData->patchData = NULL; + // Check if we've already found a patch for this resource. One is enough. + if (!resourceData->patchData) { + resourceData->patchData = new PatchData(patchDescription->fileName); + if (resourceData->patchData->_patchFile->open(patchDescription->fileName)) { + resourceData->offset = 0; + resourceData->size = resourceData->patchData->_patchFile->size(); + // ITE uses several patch files which are loaded and then not needed + // anymore (as they're in memory), so close them here. IHNM uses only + // 1 patch file, which is reused, so don't close it + if (vm->getGameId() == GID_ITE) + resourceData->patchData->_patchFile->close(); + } else { + delete resourceData->patchData; + resourceData->patchData = NULL; + } } } } -- cgit v1.2.3 From 30db851ef005b13d42f41de3a720cc6450722476 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 28 Sep 2010 18:55:54 +0000 Subject: SAGA: Fix wrong logo animation in some versions of ITE Not all releases put the Wyrmkeep credits patch in a "graphics" sub-directory, so assume it could be anywhere. svn-id: r52930 --- engines/saga/resource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/saga') diff --git a/engines/saga/resource.cpp b/engines/saga/resource.cpp index 646ee1d629..7d82aa4bda 100644 --- a/engines/saga/resource.cpp +++ b/engines/saga/resource.cpp @@ -225,7 +225,7 @@ bool Resource::createContexts() { // If the Wyrmkeep credits file is found, set the Wyrmkeep version flag to true - if (Common::File::exists("graphics/credit3n.dlt")) { + if (Common::File::exists("credit3n.dlt")) { _vm->_gf_wyrmkeep = true; } -- cgit v1.2.3 From 8dca57e4e9fe6e3d5acf03f96c2b4b4469a888a0 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 2 Oct 2010 09:08:05 +0000 Subject: SAGA: Fix bug #3065113 with patched sound glitch Bug #3065113: "ITE demo: patched sound at intro is not played correctly" svn-id: r52975 --- engines/saga/sndres.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/saga') diff --git a/engines/saga/sndres.cpp b/engines/saga/sndres.cpp index a163fdfa2b..9322918db5 100644 --- a/engines/saga/sndres.cpp +++ b/engines/saga/sndres.cpp @@ -225,6 +225,7 @@ bool SndRes::load(ResourceContext *context, uint32 resourceId, SoundBuffer &buff } Common::SeekableReadStream& readS = *file; + bool uncompressedSound = false; if (soundResourceLength >= 8) { byte header[8]; @@ -242,7 +243,6 @@ bool SndRes::load(ResourceContext *context, uint32 resourceId, SoundBuffer &buff resourceType = kSoundShorten; } - bool uncompressedSound = false; // If patch data exists for sound resource 4 (used in ITE intro), don't treat this sound as compressed // Patch data for this resource is in file p2_a.iaf or p2_a.voc if (_vm->getGameId() == GID_ITE && resourceId == 4 && context->getResourceData(resourceId)->patchData != NULL) @@ -277,7 +277,7 @@ bool SndRes::load(ResourceContext *context, uint32 resourceId, SoundBuffer &buff buffer.flags &= ~Audio::FLAG_16BITS; } else { // Voice files in newer ITE demo versions are OKI ADPCM (VOX) encoded - if (!scumm_stricmp(context->fileName(), "voicesd.rsc")) + if (!uncompressedSound && !scumm_stricmp(context->fileName(), "voicesd.rsc")) resourceType = kSoundVOX; } } -- cgit v1.2.3 From 54b2a8c98df204dfe64a27fc830936ec62e3f9ed Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 12 Oct 2010 04:19:58 +0000 Subject: JANITORIAL: Cleanup (mostly whitespace) svn-id: r53161 --- engines/saga/actor.h | 4 +-- engines/saga/interface.cpp | 76 +++++++++++++++++++++++----------------------- engines/saga/isomap.cpp | 22 +++++++------- engines/saga/puzzle.cpp | 6 ++-- engines/saga/script.cpp | 6 ++-- 5 files changed, 57 insertions(+), 57 deletions(-) (limited to 'engines/saga') diff --git a/engines/saga/actor.h b/engines/saga/actor.h index 57d06e9e3a..2f8fdea8ec 100644 --- a/engines/saga/actor.h +++ b/engines/saga/actor.h @@ -451,8 +451,8 @@ public: void cmdActorWalkTo(int argc, const char **argv); bool validActorId(uint16 id) { return (id == ID_PROTAG) || ((id >= objectIndexToId(kGameObjectActor, 0)) && (id < objectIndexToId(kGameObjectActor, _actorsCount))); } - int actorIdToIndex(uint16 id) { return (id == ID_PROTAG ) ? 0 : objectIdToIndex(id); } - uint16 actorIndexToId(int index) { return (index == 0 ) ? ID_PROTAG : objectIndexToId(kGameObjectActor, index); } + int actorIdToIndex(uint16 id) { return (id == ID_PROTAG) ? 0 : objectIdToIndex(id); } + uint16 actorIndexToId(int index) { return (index == 0) ? ID_PROTAG : objectIndexToId(kGameObjectActor, index); } ActorData *getActor(uint16 actorId); ActorData *getFirstActor() { return _actors[0]; } diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp index c4b4688785..a77ec1c140 100644 --- a/engines/saga/interface.cpp +++ b/engines/saga/interface.cpp @@ -1398,7 +1398,7 @@ void Interface::setSave(PanelButton *panelButton) { char *fileName; switch (panelButton->id) { case kTextSave: - if (_textInputStringLength == 0 ) { + if (_textInputStringLength == 0) { break; } if (!_vm->isSaveListFull() && (_optionSaveFileTitleNumber == 0)) { @@ -2166,43 +2166,43 @@ void Interface::drawButtonBox(const Rect& rect, ButtonKind kind, bool down) { byte solidColor; byte odl, our, idl, iur; - switch (kind ) { - case kSlider: - cornerColor = 0x8b; - frameColor = _vm->KnownColor2ColorId(kKnownColorBlack); - fillColor = kITEColorLightBlue96; - odl = kITEColorDarkBlue8a; - our = kITEColorLightBlue92; - idl = 0x89; - iur = 0x94; - solidColor = down ? kITEColorLightBlue94 : kITEColorLightBlue96; - break; - case kEdit: - if (_vm->getGameId() == GID_ITE) { - cornerColor = frameColor = fillColor = kITEColorLightBlue96; - our = kITEColorDarkBlue8a; - odl = kITEColorLightBlue94; - solidColor = down ? kITEColorBlue : kITEColorDarkGrey0C; - } else { - cornerColor = frameColor = fillColor = _vm->KnownColor2ColorId(kKnownColorBlack); - our = odl = solidColor = _vm->KnownColor2ColorId(kKnownColorBlack); - } - iur = 0x97; - idl = 0x95; - break; - default: - cornerColor = 0x8b; - frameColor = _vm->KnownColor2ColorId(kKnownColorBlack); - solidColor = fillColor = kITEColorLightBlue96; - odl = kITEColorDarkBlue8a; - our = kITEColorLightBlue94; - idl = 0x97; - iur = 0x95; - if (down) { - SWAP(odl, our); - SWAP(idl, iur); - } - break; + switch (kind) { + case kSlider: + cornerColor = 0x8b; + frameColor = _vm->KnownColor2ColorId(kKnownColorBlack); + fillColor = kITEColorLightBlue96; + odl = kITEColorDarkBlue8a; + our = kITEColorLightBlue92; + idl = 0x89; + iur = 0x94; + solidColor = down ? kITEColorLightBlue94 : kITEColorLightBlue96; + break; + case kEdit: + if (_vm->getGameId() == GID_ITE) { + cornerColor = frameColor = fillColor = kITEColorLightBlue96; + our = kITEColorDarkBlue8a; + odl = kITEColorLightBlue94; + solidColor = down ? kITEColorBlue : kITEColorDarkGrey0C; + } else { + cornerColor = frameColor = fillColor = _vm->KnownColor2ColorId(kKnownColorBlack); + our = odl = solidColor = _vm->KnownColor2ColorId(kKnownColorBlack); + } + iur = 0x97; + idl = 0x95; + break; + default: + cornerColor = 0x8b; + frameColor = _vm->KnownColor2ColorId(kKnownColorBlack); + solidColor = fillColor = kITEColorLightBlue96; + odl = kITEColorDarkBlue8a; + our = kITEColorLightBlue94; + idl = 0x97; + iur = 0x95; + if (down) { + SWAP(odl, our); + SWAP(idl, iur); + } + break; } int x = rect.left; diff --git a/engines/saga/isomap.cpp b/engines/saga/isomap.cpp index 8999211f2a..f0ad9bbd5e 100644 --- a/engines/saga/isomap.cpp +++ b/engines/saga/isomap.cpp @@ -303,8 +303,8 @@ void IsoMap::adjustScroll(bool jump) { _viewScroll.x = maxScrollPos.x; } } else { - _viewScroll.y = smoothSlide( _viewScroll.y, minScrollPos.y, maxScrollPos.y ); - _viewScroll.x = smoothSlide( _viewScroll.x, minScrollPos.x, maxScrollPos.x ); + _viewScroll.y = smoothSlide(_viewScroll.y, minScrollPos.y, maxScrollPos.y); + _viewScroll.x = smoothSlide(_viewScroll.x, minScrollPos.x, maxScrollPos.x); } if (_vm->_scene->currentSceneResourceId() == ITE_SCENE_OVERMAP) { @@ -429,7 +429,7 @@ void IsoMap::drawTiles(const Location *location) { workAreaWidth = _vm->getDisplayInfo().width + 128; workAreaHeight = _vm->_scene->getHeight() + 128 + 80; - for (u1 = u0, v1 = v0; metaTileY.y < workAreaHeight; u1--, v1-- ) { + for (u1 = u0, v1 = v0; metaTileY.y < workAreaHeight; u1--, v1--) { metaTileX = metaTileY; for (u2 = u1, v2 = v1; metaTileX.x < workAreaWidth; u2++, v2--, metaTileX.x += 256) { @@ -611,7 +611,7 @@ void IsoMap::drawSpritePlatform(uint16 platformIndex, const Point &point, const for (u = SAGA_PLATFORM_W - 1, copyLocation.u() = location.u() - ((SAGA_PLATFORM_W - 1) << 4); u >= 0 && s.x + 32 > _tileClip.left && s.y - SAGA_MAX_TILE_H < _tileClip.bottom; - u--, copyLocation.u() += 16, s.x -= 16, s.y += 8 ) { + u--, copyLocation.u() += 16, s.x -= 16, s.y += 8) { if (s.x < _tileClip.right && s.y > _tileClip.top) { tileIndex = tilePlatform->tiles[u][v]; @@ -663,7 +663,7 @@ void IsoMap::drawPlatform(uint16 platformIndex, const Point &point, int16 absU, for (u = SAGA_PLATFORM_W - 1; u >= 0 && s.x + 32 > _tileClip.left && s.y - SAGA_MAX_TILE_H < _tileClip.bottom; - u--, s.x -= 16, s.y += 8 ) { + u--, s.x -= 16, s.y += 8) { if (s.x < _tileClip.right && s.y > _tileClip.top) { tileIndex = tilePlatform->tiles[u][v]; @@ -955,7 +955,7 @@ void IsoMap::pushPoint(int16 u, int16 v, uint16 cost, uint16 direction) { } } - if (mid < _queueCount ) { + if (mid < _queueCount) { memmove(tilePoint + 1, tilePoint, (_queueCount - mid) * sizeof (*tilePoint)); } _queueCount++; @@ -1211,7 +1211,7 @@ void IsoMap::placeOnTileMap(const Location &start, Location &result, int16 dista for (dir = 0; dir < 8; dir++) { terrainMask = terraComp[dir]; - if (terrainMask & SAGA_IMPASSABLE ) { + if (terrainMask & SAGA_IMPASSABLE) { continue; } @@ -1352,11 +1352,11 @@ void IsoMap::findDragonTilePath(ActorData* actor,const Location &start, const Lo continue; } - tile = getTile(u1, v1, _platformHeight ); + tile = getTile(u1, v1, _platformHeight); if (tile != NULL) { mask = tile->terrainMask; if (((mask != 0) && (tile->GetFGDAttr() >= kTerrBlock)) || - ((mask != 0xFFFF) && (tile->GetBGDAttr() >= kTerrBlock)) ) { + ((mask != 0xFFFF) && (tile->GetBGDAttr() >= kTerrBlock))) { pcell->visited = 1; } } else { @@ -1453,7 +1453,7 @@ void IsoMap::findDragonTilePath(ActorData* actor,const Location &start, const Lo actor->_walkStepsCount = i; if (i) { actor->setTileDirectionsSize(i, false); - memcpy(actor->_tileDirections, res, i ); + memcpy(actor->_tileDirections, res, i); } } @@ -1586,7 +1586,7 @@ void IsoMap::findTilePath(ActorData* actor, const Location &start, const Locatio actor->_walkStepsCount = i; if (i) { actor->setTileDirectionsSize(i, false); - memcpy(actor->_tileDirections, res, i ); + memcpy(actor->_tileDirections, res, i); } } diff --git a/engines/saga/puzzle.cpp b/engines/saga/puzzle.cpp index 5b13473d77..73839eb6ea 100644 --- a/engines/saga/puzzle.cpp +++ b/engines/saga/puzzle.cpp @@ -459,9 +459,9 @@ void Puzzle::solicitHint() { _vm->getTimerManager()->installTimerProc(&hintTimerCallback, 50*1000000, this); _vm->_interface->converseClear(); - _vm->_interface->converseAddText(optionsStr[_lang][kROAccept], 0, 1, 0, 0 ); - _vm->_interface->converseAddText(optionsStr[_lang][kRODecline], 0, 2, 0, 0 ); - _vm->_interface->converseAddText(optionsStr[_lang][kROLater], 0, 0, 0, 0 ); + _vm->_interface->converseAddText(optionsStr[_lang][kROAccept], 0, 1, 0, 0); + _vm->_interface->converseAddText(optionsStr[_lang][kRODecline], 0, 2, 0, 0); + _vm->_interface->converseAddText(optionsStr[_lang][kROLater], 0, 0, 0, 0); _vm->_interface->converseDisplayText(); break; diff --git a/engines/saga/script.cpp b/engines/saga/script.cpp index 5fd120ac33..b0e20da48c 100644 --- a/engines/saga/script.cpp +++ b/engines/saga/script.cpp @@ -1315,7 +1315,7 @@ void Script::setVerb(int verb) { // engine did it, but it appears to work. _pointerObject = ID_NOTHING; - setLeftButtonVerb( verb ); + setLeftButtonVerb(verb); showVerb(); } @@ -1549,7 +1549,7 @@ void Script::playfieldClick(const Point& mousePoint, bool leftButton) { } if (_pointerObject != ID_NOTHING) { - hitObject( leftButton ); + hitObject(leftButton); } else { _pendingObject[0] = ID_NOTHING; _pendingObject[1] = ID_NOTHING; @@ -1618,7 +1618,7 @@ void Script::playfieldClick(const Point& mousePoint, bool leftButton) { _vm->_actor->actorWalkTo(ID_PROTAG, pickLocation); } else { if (_pendingVerb == getVerbType(kVerbLookAt)) { - if (objectTypeId(_pendingObject[0]) != kGameObjectActor ) { + if (objectTypeId(_pendingObject[0]) != kGameObjectActor) { _vm->_actor->actorWalkTo(ID_PROTAG, pickLocation); } else { doVerb(); -- cgit v1.2.3