Skip to content

Commit

Permalink
PINK: fix setting cursor with name which wasn't in disasm
Browse files Browse the repository at this point in the history
  • Loading branch information
voltya authored and sev- committed Jun 28, 2018
1 parent 6336493 commit 63fc5ad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions engines/pink/cursor_mgr.cpp
Expand Up @@ -69,12 +69,14 @@ void CursorMgr::setCursor(const Common::String &cursorName, const Common::Point
index = kExitLeftCursor;
else if (cursorName == kCursorNameExitRight)
index = kExitRightCursor;
else if (cursorName == kCursorNameExitForward || cursorName == kCursorNameExitUp)
else if (cursorName == kCursorNameExitForward || cursorName == kCursorNameExitUp || cursorName == "Exit")
index = kExitForwardCursor;
else if (cursorName == kCursorNameExitBackWards)
index = kExitDownCursor;
else
error("%s UNKNOWN CURSOR", cursorName.c_str());
else {
warning("%s UNKNOWN CURSOR", cursorName.c_str());
index = kExitForwardCursor;
}

setCursor(index, point, "");
}
Expand Down

0 comments on commit 63fc5ad

Please sign in to comment.