[wpdev-commits] wolfpack/python global.cpp,1.81,1.82
Brought to you by:
rip,
thiagocorrea
|
From: <thi...@us...> - 2003-09-02 01:07:48
|
Update of /cvsroot/wpdev/wolfpack/python
In directory sc8-pr-cvs1:/tmp/cvs-serv8062/python
Modified Files:
global.cpp
Log Message:
Some fixes for MySQL driver
Index: global.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/python/global.cpp,v
retrieving revision 1.81
retrieving revision 1.82
diff -C2 -d -r1.81 -r1.82
*** global.cpp 29 Aug 2003 18:11:00 -0000 1.81
--- global.cpp 2 Sep 2003 01:07:44 -0000 1.82
***************
*** 687,696 ****
{
Q_UNUSED(self);
! if ( !checkArgInt(0) )
! {
! PyErr_BadArgument();
return 0;
! }
! return Map->hasMap( getArgInt(0) ) ? PyTrue : PyFalse;
}
--- 687,695 ----
{
Q_UNUSED(self);
! uint map = 0;
! if( !PyArg_ParseTuple( args, "i:wolfpack.hasmap", &map ) )
return 0;
!
! return Map->hasMap( map ) ? PyTrue : PyFalse;
}
***************
*** 814,828 ****
Q_UNUSED(self);
! if( !checkArgInt( 0 ) || !checkArgInt( 1 ) || !checkArgInt( 2 ) || !checkArgInt( 3 ) )
! {
! PyErr_BadArgument();
return 0;
- }
! Coord_cl pos;
! pos.x = getArgInt( 0 );
! pos.y = getArgInt( 1 );
! pos.z = getArgInt( 2 );
! pos.map = getArgInt( 3 );
return PyGetCoordObject( pos );
--- 813,822 ----
Q_UNUSED(self);
! uint x = 0, y = 0, z = 0;
! uchar map = 0;
! if( !PyArg_ParseTuple( args, "iiib:wolfpack.coord", &x, &y, &z, &map ) )
return 0;
! Coord_cl pos( x, y, z, map );
return PyGetCoordObject( pos );
***************
*** 836,845 ****
Q_UNUSED( self);
! if( !checkArgInt( 0 ) )
! {
! PyErr_BadArgument();
return 0;
! }
! uint type = getArgInt( 0 );
P_MULTI pMulti = NULL;
--- 830,837 ----
Q_UNUSED( self);
! uint type = 0;
! if( !PyArg_ParseTuple( args, "i:wolfpack.multi", &type ) )
return 0;
!
P_MULTI pMulti = NULL;
|