Fix bug #1536932: "MANIACNES: Crash on click in speechtext-area"

svn-id: r23962
This commit is contained in:
Eugene Sandulenko 2006-09-21 12:14:29 +00:00
parent 965cfe4008
commit 25a6af2c93
2 changed files with 6 additions and 0 deletions

1
NEWS
View File

@ -30,6 +30,7 @@ For a more comprehensive changelog for the latest experimental SVN code, see:
- Fixed graphical glitches in HE80 version of Putt-Putt Travels Through
Time.
- Fixed FM-TOWNS version of Indy3 failing on Amiga port.
- Fixed crash in MM NES when clicking on top screen area
Simon:
- Improved support for international versions of the Feeble Files.

View File

@ -518,6 +518,11 @@ void ScummEngine::checkExecVerbs() {
byte code = _mouseAndKeyboardStat & MBS_LEFT_CLICK ? 1 : 2;
int inventoryArea = (_game.platform == Common::kPlatformNES) ? 48: 32;
// This could be kUnkVirtScreen.
// Fixes bug #1536932: "MANIACNES: Crash on click in speechtext-area
if (!zone)
return;
if (_game.version <= 2 && zone->number == kVerbVirtScreen && _mouse.y <= zone->topline + 8) {
// Click into V2 sentence line
runInputScript(5, 0, 0);