[wpdev-commits] wolfpack/python item.cpp,1.142,1.143
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-11-03 13:51:41
|
Update of /cvsroot/wpdev/wolfpack/python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11944/python Modified Files: item.cpp Log Message: Bugfixes Index: item.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/python/item.cpp,v retrieving revision 1.142 retrieving revision 1.143 diff -C2 -d -r1.142 -r1.143 *** item.cpp 3 Nov 2004 02:09:33 -0000 1.142 --- item.cpp 3 Nov 2004 13:51:16 -0000 1.143 *************** *** 192,200 **** // Gather parameters Coord pos = self->pItem->pos(); ! uchar noRemove = 0; if ( PyTuple_Size( args ) == 1 ) { ! if ( !PyArg_ParseTuple( args, "O&|b:item.moveto(coord, [noremove=0])", &PyConvertCoord, &pos, &noRemove ) ) { return 0; --- 192,200 ---- // Gather parameters Coord pos = self->pItem->pos(); ! uchar noRemove = 1; // otherwise it NEVER gets moved to the surface if ( PyTuple_Size( args ) == 1 ) { ! if ( !PyArg_ParseTuple( args, "O&|b:item.moveto(coord, [noremove=1])", &PyConvertCoord, &pos, &noRemove ) ) { return 0; *************** *** 1350,1354 **** { self->pItem->removeFromCont(); ! self->pItem->moveTo( self->pItem->pos() ); } } --- 1350,1354 ---- { self->pItem->removeFromCont(); ! self->pItem->moveTo( self->pItem->pos(), true ); } } |