[Scummvm-cvs-logs] SF.net SVN: scummvm: [22801] scummvm/trunk/engines/gob/goblin.cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Wed May 31 06:44:02 CEST 2006


Revision: 22801
Author:   drmccoy
Date:     2006-05-31 06:43:23 -0700 (Wed, 31 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22801&view=rev

Log Message:
-----------
Use _mapWidth/_mapHeight instead of constant

Modified Paths:
--------------
    scummvm/trunk/engines/gob/goblin.cpp
Modified: scummvm/trunk/engines/gob/goblin.cpp
===================================================================
--- scummvm/trunk/engines/gob/goblin.cpp	2006-05-31 13:36:01 UTC (rev 22800)
+++ scummvm/trunk/engines/gob/goblin.cpp	2006-05-31 13:43:23 UTC (rev 22801)
@@ -1026,8 +1026,8 @@
 			break;
 		}
 
-		_pressedMapX = MIN(posX / 12, 25);
-		_pressedMapY = MIN(posY / 6, 27);
+		_pressedMapX = MIN(posX / 12, _vm->_map->_mapWidth - 1);
+		_pressedMapY = MIN(posY / 6, _vm->_map->_mapHeight - 1);
 
 		if (_vm->_map->_itemsMap[_pressedMapY][_pressedMapX] == 0
 		    && i < 20) {


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