[wpdev-commits] wolfpack/network uosocket.cpp,1.386,1.387
Brought to you by:
rip,
thiagocorrea
From: Correa <thi...@us...> - 2004-08-06 22:27:13
|
Update of /cvsroot/wpdev/wolfpack/network In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27900/network Modified Files: uosocket.cpp Log Message: added option to limit number of chars an account can hold( bugID: 152 ) Index: uosocket.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/network/uosocket.cpp,v retrieving revision 1.386 retrieving revision 1.387 diff -C2 -d -r1.386 -r1.387 *** uosocket.cpp 5 Aug 2004 01:29:04 -0000 1.386 --- uosocket.cpp 6 Aug 2004 22:27:03 -0000 1.387 *************** *** 568,572 **** charList.compile(); send( &charList ); ! // Ask the client for a viewrange cUOPacket packet( 0xc8, 2 ); --- 568,572 ---- charList.compile(); send( &charList ); ! #pragma fixme("Warning: Ugly ugly ugly! Fix me!") // Ask the client for a viewrange cUOPacket packet( 0xc8, 2 ); *************** *** 828,835 **** QValueVector<P_PLAYER> characters = _account->caracterList(); ! // If we have more than 5 characters ! if ( characters.size() >= 6 ) { ! cancelCreate( tr( "You already have more than 6 characters" ) ) } --- 828,836 ---- QValueVector<P_PLAYER> characters = _account->caracterList(); ! // If we have more than 6 characters ! const uint maxChars = QMIN(6, Config::instance()->maxCharsPerAccount() ); ! if ( characters.size() >= maxChars ) { ! cancelCreate( tr( "You already have more than %1 characters" ).arg(maxChars) ) } |