From: <fu...@us...> - 2009-05-30 22:00:30
|
Revision: 6201 http://gemrb.svn.sourceforge.net/gemrb/?rev=6201&view=rev Author: fuzzie Date: 2009-05-30 22:00:14 +0000 (Sat, 30 May 2009) Log Message: ----------- even items which are not valid in any slots should be usable in the inventory Modified Paths: -------------- gemrb/trunk/gemrb/override/bg2/itemtype.2da gemrb/trunk/gemrb/plugins/Core/Interface.cpp Modified: gemrb/trunk/gemrb/override/bg2/itemtype.2da =================================================================== --- gemrb/trunk/gemrb/override/bg2/itemtype.2da 2009-05-30 21:52:40 UTC (rev 6200) +++ gemrb/trunk/gemrb/override/bg2/itemtype.2da 2009-05-30 22:00:14 UTC (rev 6201) @@ -38,5 +38,5 @@ GEM 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 WAND 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 BAG 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 -BROKEN1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -BROKEN2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +BOOK 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +FAMILIAR 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Modified: gemrb/trunk/gemrb/plugins/Core/Interface.cpp =================================================================== --- gemrb/trunk/gemrb/plugins/Core/Interface.cpp 2009-05-30 21:52:40 UTC (rev 6200) +++ gemrb/trunk/gemrb/plugins/Core/Interface.cpp 2009-05-30 22:00:14 UTC (rev 6201) @@ -3837,6 +3837,9 @@ //if any bit is true, the answer counts as true int ret = (slotmatrix[item->ItemType]&slottype); + if (slottype == SLOT_INVENTORY || slottype == SLOT_ANY) { + ret = 1; + } if (!ret) { if (feedback) DisplayConstantString(STR_WRONGITEMTYPE, 0xf0f0f0); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |