Update of /cvsroot/wpdev/xmlscripts/scripts/commands
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14456/commands
Modified Files:
who.py
Log Message:
bugfixes
Index: who.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/who.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** who.py 6 Sep 2004 22:30:22 -0000 1.6
--- who.py 4 Oct 2004 12:53:18 -0000 1.7
***************
*** 44,48 ****
# Pages to create, (( socketcount / 10) + 1 )
# Player list increases by 22 pixels
! maxpages = ((worldsocketcount / 10) + 1)
page = 0
serialcount = 0
--- 44,48 ----
# Pages to create, (( socketcount / 10) + 1 )
# Player list increases by 22 pixels
! maxpages = (worldsocketcount + 9) / 10)
page = 0
serialcount = 0
***************
*** 56,60 ****
gump.addPageButton( 240, 320, 0x0FC, 0x0FC, page - 1 )
upby = 22
! for serial in wholist:
if not serial:
break
--- 56,66 ----
gump.addPageButton( 240, 320, 0x0FC, 0x0FC, page - 1 )
upby = 22
! skip = page * 10
! skipped = 0
! for serial in wholist[:]:
! if skipped < skip:
! skipped += 1
! continue
!
if not serial:
break
|