[wpdev-commits] xmlscripts/scripts/wolfpack/commands info.py,1.15,1.16
Brought to you by:
rip,
thiagocorrea
|
From: <dr...@us...> - 2004-01-14 04:11:40
|
Update of /cvsroot/wpdev/xmlscripts/scripts/wolfpack/commands
In directory sc8-pr-cvs1:/tmp/cvs-serv9026
Modified Files:
info.py
Log Message:
This fixes changing an objects position.
Index: info.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/wolfpack/commands/info.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** info.py 14 Jan 2004 03:41:14 -0000 1.15
--- info.py 14 Jan 2004 04:11:37 -0000 1.16
***************
*** 436,448 ****
char.defense = int( hex2dec( textentries[ key ] ) )
elif key == 22:
! pos = textentries[key].split( "," )
! if len(pos) > 0:
! char.pos.x = int( pos[0] )
! if len(pos) > 1:
! char.pos.y = int( pos[1] )
! if len(pos) > 2:
! char.pos.z = int( pos[2] )
! if len(pos) > 3:
! char.pos.map = int( pos[3] )
elif key == 23:
char.direction = int( hex2dec( textentries[ key ] ) )
--- 436,440 ----
char.defense = int( hex2dec( textentries[ key ] ) )
elif key == 22:
! char.pos = str( textentries[ key ] )
elif key == 23:
char.direction = int( hex2dec( textentries[ key ] ) )
***************
*** 698,710 ****
item.id = int( hex2dec( textentries[ key ] ) )
elif key == 5:
! pos = textentries[key].split(",")
! if len(pos) > 0:
! item.pos.x = int( pos[0] )
! if len(pos) > 1:
! item.pos.y = int( pos[1] )
! if len(pos) > 2:
! item.pos.z = int( pos[2] )
! if len(pos) > 3:
! item.pos.map = int( pos[3] )
elif key == 6:
item.color = int( hex2dec( textentries[ key ] ) )
--- 690,694 ----
item.id = int( hex2dec( textentries[ key ] ) )
elif key == 5:
! item.pos = str( textentries[key] )
elif key == 6:
item.color = int( hex2dec( textentries[ key ] ) )
|