[Scummvm-cvs-logs] SF.net SVN: scummvm: [23962] scummvm/trunk
sev at users.sourceforge.net
sev at users.sourceforge.net
Thu Sep 21 14:15:10 CEST 2006
Revision: 23962
http://svn.sourceforge.net/scummvm/?rev=23962&view=rev
Author: sev
Date: 2006-09-21 05:14:29 -0700 (Thu, 21 Sep 2006)
Log Message:
-----------
Fix bug #1536932: "MANIACNES: Crash on click in speechtext-area"
Modified Paths:
--------------
scummvm/trunk/NEWS
scummvm/trunk/engines/scumm/verbs.cpp
Modified: scummvm/trunk/NEWS
===================================================================
--- scummvm/trunk/NEWS 2006-09-21 11:51:06 UTC (rev 23961)
+++ scummvm/trunk/NEWS 2006-09-21 12:14:29 UTC (rev 23962)
@@ -30,6 +30,7 @@
- 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.
Modified: scummvm/trunk/engines/scumm/verbs.cpp
===================================================================
--- scummvm/trunk/engines/scumm/verbs.cpp 2006-09-21 11:51:06 UTC (rev 23961)
+++ scummvm/trunk/engines/scumm/verbs.cpp 2006-09-21 12:14:29 UTC (rev 23962)
@@ -518,6 +518,11 @@
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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list