[wpdev-commits] xmlscripts/scripts/commands who.py,1.13,1.14
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-10-04 21:20:51
|
Update of /cvsroot/wpdev/xmlscripts/scripts/commands In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5864/commands Modified Files: who.py Log Message: fixes Index: who.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/who.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** who.py 4 Oct 2004 20:36:22 -0000 1.13 --- who.py 4 Oct 2004 21:20:39 -0000 1.14 *************** *** 46,55 **** newwholist = wholist[page * 10:] - # Reduce the page id while page > 0 and len(newwholist) == 0 - while len(newwholist) == 0 and page > 0: - page -= 1 - newwholist = wholist[page * 10:] - wholist = newwholist gump = cGump( 0, 0, 0, 50, 50 ) --- 46,53 ---- newwholist = wholist[page * 10:] wholist = newwholist + + # Player list increases by 22 pixels + pages = (count + 9) / 10 # 10 per page gump = cGump( 0, 0, 0, 50, 50 ) *************** *** 62,69 **** gump.addText( 145, 320, tr("Players: %u") % count, 0x834 ) - # Player list increases by 22 pixels - pages = (count + 9) / 10 # 10 per page - - player.socket.sysmessage(tr('Total sockets: %u') % count) gump.addText( 280, 320, tr( "Page %i of %i" % ( page + 1, pages ) ), 0x834 ) --- 60,63 ---- |