[Scummvm-cvs-logs] SF.net SVN: scummvm: [26838] scummvm/trunk/engines/parallaction/inventory. cpp

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Sun May 13 18:25:18 CEST 2007


Revision: 26838
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26838&view=rev
Author:   peres001
Date:     2007-05-13 09:25:18 -0700 (Sun, 13 May 2007)

Log Message:
-----------
Reverted some changes to inventory handling.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/inventory.cpp

Modified: scummvm/trunk/engines/parallaction/inventory.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/inventory.cpp	2007-05-13 16:11:19 UTC (rev 26837)
+++ scummvm/trunk/engines/parallaction/inventory.cpp	2007-05-13 16:25:18 UTC (rev 26838)
@@ -258,13 +258,12 @@
 void jobShowInventory(void *parm, Job *j) {
 //	printf("job_showInventory()...");
 
-	uint16 slots = 0;
-	while (_inventory[slots]._id != 0)
-		slots++;
+	_numInvLines = 0;
+	while (_inventory[_numInvLines]._id != 0) _numInvLines++;
+	_numInvLines = (_numInvLines + 4) / INVENTORY_ITEMS_PER_LINE;
 
-	uint16 lines = (slots + 4) / INVENTORY_ITEMS_PER_LINE;
+	Common::Rect r(INVENTORY_WIDTH, _numInvLines * INVENTORYITEM_HEIGHT);
 
-	Common::Rect r(INVENTORY_WIDTH, lines * INVENTORYITEM_HEIGHT);
 	r.moveTo(_invPosition);
 
 	_vm->_gfx->copyRect(


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