diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sherlock/animation.cpp | 2 | ||||
-rw-r--r-- | engines/sherlock/animation.h | 1 | ||||
-rw-r--r-- | engines/sherlock/detection.cpp | 6 | ||||
-rw-r--r-- | engines/sherlock/inventory.cpp | 4 | ||||
-rw-r--r-- | engines/sherlock/journal.cpp | 8 | ||||
-rw-r--r-- | engines/sherlock/people.cpp | 4 | ||||
-rw-r--r-- | engines/sherlock/people.h | 4 | ||||
-rw-r--r-- | engines/sherlock/scene.cpp | 2 |
8 files changed, 14 insertions, 17 deletions
diff --git a/engines/sherlock/animation.cpp b/engines/sherlock/animation.cpp index 1d6c12f668..6cdefaffbd 100644 --- a/engines/sherlock/animation.cpp +++ b/engines/sherlock/animation.cpp @@ -28,7 +28,7 @@ namespace Sherlock { static const int NO_FRAMES = FRAMES_END; -Animation::Animation(SherlockEngine *vm): _vm(vm) { +Animation::Animation(SherlockEngine *vm) : _vm(vm) { } /** diff --git a/engines/sherlock/animation.h b/engines/sherlock/animation.h index 06614df6b1..cd22a5c30a 100644 --- a/engines/sherlock/animation.h +++ b/engines/sherlock/animation.h @@ -45,7 +45,6 @@ private: const int *checkForSoundFrames(const Common::String &filename); public: -public: Animation(SherlockEngine *vm); void setPrologueNames(const char *const *names, int count); diff --git a/engines/sherlock/detection.cpp b/engines/sherlock/detection.cpp index 2804ec1d31..00f6a1256e 100644 --- a/engines/sherlock/detection.cpp +++ b/engines/sherlock/detection.cpp @@ -66,7 +66,7 @@ static const ADExtraGuiOptionsMap optionsList[] = { GAMEOPTION_ORIGINAL_SAVES, { _s("Use original savegame dialog"), - _s("Files button in-game shows original savegame dialog rather than ScummVM menu"), + _s("Files button in-game shows original savegame dialog rather than the ScummVM menu"), "originalsaveload", false } @@ -197,7 +197,7 @@ SaveStateDescriptor SherlockMetaEngine::querySaveMetaInfos(const char *target, i #if PLUGIN_ENABLED_DYNAMIC(SHERLOCK) -REGISTER_PLUGIN_DYNAMIC(SHERLOCK, PLUGIN_TYPE_ENGINE, SherlockMetaEngine); + REGISTER_PLUGIN_DYNAMIC(SHERLOCK, PLUGIN_TYPE_ENGINE, SherlockMetaEngine); #else -REGISTER_PLUGIN_STATIC(SHERLOCK, PLUGIN_TYPE_ENGINE, SherlockMetaEngine); + REGISTER_PLUGIN_STATIC(SHERLOCK, PLUGIN_TYPE_ENGINE, SherlockMetaEngine); #endif diff --git a/engines/sherlock/inventory.cpp b/engines/sherlock/inventory.cpp index 8da83aa5da..5b548bb9e3 100644 --- a/engines/sherlock/inventory.cpp +++ b/engines/sherlock/inventory.cpp @@ -128,7 +128,7 @@ void Inventory::loadGraphics() { /** * Searches through the list of names that correspond to the inventory items - * and returns the numer that matches the passed name + * and returns the number that matches the passed name */ int Inventory::findInv(const Common::String &name) { for (int idx = 0; idx < (int)_names.size(); ++idx) { @@ -150,7 +150,7 @@ void Inventory::putInv(int slamIt) { UserInterface &ui = *_vm->_ui; // If an inventory item has disappeared (due to using it or giving it), - // a blank space slot may haave appeared. If so, adjust the inventory + // a blank space slot may have appeared. If so, adjust the inventory if (_invIndex > 0 && _invIndex > (_holdings - 6)) { --_invIndex; freeGraphics(); diff --git a/engines/sherlock/journal.cpp b/engines/sherlock/journal.cpp index 2a7aeb4f2d..966ed55b81 100644 --- a/engines/sherlock/journal.cpp +++ b/engines/sherlock/journal.cpp @@ -248,7 +248,7 @@ void Journal::loadJournalFile(bool alreadyLoaded) { // Is it a control character? if (c < 128) { - // Nope. Set flag for allowing control coes to insert spaces + // Nope. Set flag for allowing control codes to insert spaces ctrlSpace = true; assert(c >= ' '); @@ -898,7 +898,6 @@ bool Journal::handleEvents(int key) { } screen.buttonPrint(Common::Point(JOURNAL_POINTS[7][2], JOURNAL_BUTTONS_Y + 11), color, true, "Last Page"); - // Print Text button if (pt.x > JOURNAL_POINTS[8][0] && pt.x < JOURNAL_POINTS[8][1] && pt.y >= (JOURNAL_BUTTONS_Y + 11) && pt.y < (JOURNAL_BUTTONS_Y + 20) && !_journal.empty()) { @@ -922,14 +921,14 @@ bool Journal::handleEvents(int key) { screen.slamArea(0, 0, SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCREEN_HEIGHT); } - if (((found == BTN_UP && events._released) || key =='U') && _up) { + if (((found == BTN_UP && events._released) || key == 'U') && _up) { // Scroll up drawJournal(1, LINES_PER_PAGE); doArrows(); screen.slamArea(0, 0, SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCREEN_HEIGHT); } - if (((found == BTN_DOWN && events._released) || key =='D') && _down) { + if (((found == BTN_DOWN && events._released) || key == 'D') && _down) { // Scroll down drawJournal(2, LINES_PER_PAGE); doArrows(); @@ -951,7 +950,6 @@ bool Journal::handleEvents(int key) { screen.buttonPrint(Common::Point(JOURNAL_POINTS[5][2], JOURNAL_BUTTONS_Y + 11), COMMAND_FOREGROUND, true, "Search"); bool notFound = false; - do { int dir; if ((dir = getFindName(notFound)) != 0) { diff --git a/engines/sherlock/people.cpp b/engines/sherlock/people.cpp index 9a42f94d4d..ad7c37a8c4 100644 --- a/engines/sherlock/people.cpp +++ b/engines/sherlock/people.cpp @@ -119,7 +119,7 @@ const char PORTRAITS[MAX_PEOPLE][5] = { { "INSP" } // Inspector Lestrade (Scotland Yard) }; -const char *const NAMES[MAX_PEOPLE] = { +const char *const NAMES[MAX_PEOPLE] = { "Sherlock Holmes", "Dr. Watson", "Inspector Lestrade", @@ -221,7 +221,7 @@ People::~People() { * Reset the player data */ void People::reset() { - // Note: The engine has theoretical support for two player charactersm but only the first one is used. + // Note: The engine has theoretical support for two player characters but only the first one is used. // Watson is, instead, handled by a different sprite in each scene, with a very simple initial movement, if any Sprite &p = _data[PLAYER]; diff --git a/engines/sherlock/people.h b/engines/sherlock/people.h index f98c3db867..9ac1a797c6 100644 --- a/engines/sherlock/people.h +++ b/engines/sherlock/people.h @@ -53,12 +53,12 @@ enum { MAP_DOWN = 5, MAP_DOWNLEFT = 6, MAP_LEFT = 2, MAP_UPLEFT = 8 }; -extern const char *const NAMES[MAX_PEOPLE]; +extern const char *const NAMES[MAX_PEOPLE]; extern const char PORTRAITS[MAX_PEOPLE][5]; class SherlockEngine; -class Person: public Sprite { +class Person : public Sprite { public: Person() : Sprite() {} diff --git a/engines/sherlock/scene.cpp b/engines/sherlock/scene.cpp index 8a906e9335..41d9284024 100644 --- a/engines/sherlock/scene.cpp +++ b/engines/sherlock/scene.cpp @@ -964,7 +964,7 @@ int Scene::startCAnim(int cAnimNum, int playRate) { if (talk._talkToAbort) return 1; - // Add new anim shape entry for displaying the animationo + // Add new anim shape entry for displaying the animation _canimShapes.push_back(Object()); Object &cObj = _canimShapes[_canimShapes.size() - 1]; |