Update of /cvsroot/wpdev/wolfpack/python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9823/python
Modified Files:
char.cpp item.cpp
Log Message:
hopefully fixes some errors related to duplicate save items.
Index: item.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/python/item.cpp,v
retrieving revision 1.137
retrieving revision 1.138
diff -C2 -d -r1.137 -r1.138
*** item.cpp 8 Oct 2004 01:13:16 -0000 1.137
--- item.cpp 12 Oct 2004 23:59:28 -0000 1.138
***************
*** 707,710 ****
--- 707,713 ----
P_ITEM pItem = getArgItem( 0 );
+ if (pItem->free)
+ Py_RETURN_FALSE;
+
// Secondary Parameters
bool randomPos = true;
Index: char.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/python/char.cpp,v
retrieving revision 1.203
retrieving revision 1.204
diff -C2 -d -r1.203 -r1.204
*** char.cpp 1 Oct 2004 23:26:38 -0000 1.203
--- char.cpp 12 Oct 2004 23:59:28 -0000 1.204
***************
*** 2242,2246 ****
if ( pItem )
! self->pChar->addItem( ( cBaseChar::enLayer ) layer, pItem, handleWeight, noRemove );
Py_RETURN_NONE;
--- 2242,2246 ----
if ( pItem )
! self->pChar->addItem( ( cBaseChar::enLayer ) layer, pItem, handleWeight, false );
Py_RETURN_NONE;
|