Skip to content

Commit

Permalink
SHERLOCK: RT: Show arrow cursors when mouse is on exit zones
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jul 2, 2015
1 parent 1d173d4 commit dba1ab4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions engines/sherlock/tattoo/tattoo_scene.cpp
Expand Up @@ -50,15 +50,13 @@ static bool sortImagesY(const ShapeEntry &s1, const ShapeEntry &s2) {
/*----------------------------------------------------------------*/

TattooScene::TattooScene(SherlockEngine *vm) : Scene(vm) {
_arrowZone = -1;
_labTableScene = false;
}

bool TattooScene::loadScene(const Common::String &filename) {
TattooEngine &vm = *(TattooEngine *)_vm;
Events &events = *_vm->_events;
Music &music = *_vm->_music;
Sound &sound = *_vm->_sound;
Talk &talk = *_vm->_talk;
TattooUserInterface &ui = *(TattooUserInterface *)_vm->_ui;

Expand Down Expand Up @@ -288,7 +286,7 @@ void TattooScene::checkBgShapes() {

void TattooScene::doBgAnimCheckCursor() {
Events &events = *_vm->_events;
UserInterface &ui = *_vm->_ui;
TattooUserInterface &ui = *(TattooUserInterface *)_vm->_ui;
Common::Point mousePos = events.mousePos();

// If we're in Look Mode, make sure the cursor is the magnifying glass
Expand All @@ -300,7 +298,7 @@ void TattooScene::doBgAnimCheckCursor() {
if (events.getCursor() == ARROW || events.getCursor() >= EXIT_ZONES_START) {
CursorId cursorId = ARROW;

if (ui._menuMode == STD_MODE && _arrowZone != -1 && _currentScene != 90) {
if (ui._menuMode == STD_MODE && ui._arrowZone != -1 && _currentScene != 90) {
for (uint idx = 0; idx < _exits.size(); ++idx) {
Exit &exit = _exits[idx];
if (exit.contains(mousePos))
Expand Down
2 changes: 0 additions & 2 deletions engines/sherlock/tattoo/tattoo_scene.h
Expand Up @@ -45,8 +45,6 @@ struct SceneTripEntry {
};

class TattooScene : public Scene {
private:
int _arrowZone;
private:
void doBgAnimCheckCursor();

Expand Down

0 comments on commit dba1ab4

Please sign in to comment.