[wpdev-commits] wolfpack/python skills.h,1.11,1.12
Brought to you by:
rip,
thiagocorrea
|
From: <dar...@us...> - 2003-08-27 20:35:14
|
Update of /cvsroot/wpdev/wolfpack/python
In directory sc8-pr-cvs1:/tmp/cvs-serv30896/src/python
Modified Files:
skills.h
Log Message:
moved some properties from cItem to python
Index: skills.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/python/skills.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** skills.h 2 Jun 2003 17:16:58 -0000 1.11
--- skills.h 27 Aug 2003 20:35:10 -0000 1.12
***************
*** 82,87 ****
self->pChar->setSkillLock( skill, value );
! if( self->pChar->isA("cPlayer") && static_cast<P_PLAYER>(self->pChar)->socket() )
! static_cast<P_PLAYER>(self->pChar)->socket()->sendSkill( skill );
return 0;
--- 82,89 ----
self->pChar->setSkillLock( skill, value );
! P_PLAYER pPlayer = dynamic_cast< P_PLAYER >( self->pChar );
!
! if( pPlayer && pPlayer->socket() )
! pPlayer->socket()->sendSkill( skill );
return 0;
|