UINT32 xBlock = getArgInt( 0 ) / 8; UINT32 yBlock = getArgInt( 1 ) / 8;
PyObject *wpItems( PyObject* self, PyObject* args ){	Q_UNUSED(self);	// Minimum is x, y, map	if( !checkArgInt( 0 ) || !checkArgInt( 1 ) || !checkArgInt( 2 ) )	{		PyErr_BadArgument();		return 0;	}		bool exact = true;		if( checkArgInt( 3 ) && getArgInt( 3 ) == 0 )		exact = false;		Coord_cl pos( getArgInt( 0 ), getArgInt( 1 ), 0, getArgInt( 2 ) );	RegionIterator4Items iter( pos );	PyObject *list = PyList_New( 0 );	UINT32 xBlock = getArgInt( 0 ) / 8;	UINT32 yBlock = getArgInt( 1 ) / 8;	for( iter.Begin(); !iter.atEnd(); iter++ )	{		P_ITEM pItem = iter.GetData();		if( pItem->pos().map != pos.map )			continue;		if( exact && ( pItem->pos().x != pos.x && pItem->pos().y != pos.y ) )			continue;		PyList_Append( list, PyGetItemObject( pItem ) );	}	return list;}