[wpdev-commits] wolfpack/network uosocket.cpp,1.283,1.284 uosocket.h,1.94,1.95
Brought to you by:
rip,
thiagocorrea
|
From: <dar...@us...> - 2003-09-09 23:10:02
|
Update of /cvsroot/wpdev/wolfpack/network
In directory sc8-pr-cvs1:/tmp/cvs-serv9847/network
Modified Files:
uosocket.cpp uosocket.h
Log Message:
Implemented saving of Accounts to the Database and cleaned up a lot of srvparams.h and globals.h
Index: uosocket.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uosocket.cpp,v
retrieving revision 1.283
retrieving revision 1.284
diff -C2 -d -r1.283 -r1.284
*** uosocket.cpp 8 Sep 2003 10:58:47 -0000 1.283
--- uosocket.cpp 9 Sep 2003 23:09:31 -0000 1.284
***************
*** 362,375 ****
{
_player->onLogout();
-
- cUOSocket* mSocket = 0;
- QPtrListIterator<cUOSocket> it( cNetwork::instance()->getIterator() );
- while ( ( mSocket = it.current() ) )
- {
- ++it;
- if ( mSocket == this || !SrvParams->joinMsg() || !mSocket->player() || !mSocket->player()->isGMorCounselor() )
- continue;
- mSocket->sysMessage( tr("%1 left the world!").arg( _player->name() ), 0x25 );
- }
_player->setSocket( NULL );
_player->account()->setInUse( false );
--- 362,365 ----
***************
*** 602,609 ****
pChar->sendTooltip( this );
-
- for( cUOSocket *mSock = cNetwork::instance()->first(); mSock; mSock = cNetwork::instance()->next() )
- if( mSock != this && SrvParams->joinMsg() && mSock->player() && mSock->player()->isGMorCounselor() )
- mSock->sysMessage( tr("%1 entered the world!").arg( pChar->name() ), 0x48 );
}
--- 592,595 ----
***************
*** 617,621 ****
{
cAccounts::enErrorCode error = cAccounts::NoError;
! AccountRecord* authRet = Accounts::instance()->authenticate( username, password, &error );
// Reject login
--- 603,607 ----
{
cAccounts::enErrorCode error = cAccounts::NoError;
! cAccount* authRet = Accounts::instance()->authenticate( username, password, &error );
// Reject login
Index: uosocket.h
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uosocket.h,v
retrieving revision 1.94
retrieving revision 1.95
diff -C2 -d -r1.94 -r1.95
*** uosocket.h 8 Sep 2003 10:58:47 -0000 1.94
--- uosocket.h 9 Sep 2003 23:09:31 -0000 1.95
***************
*** 42,46 ****
// Forward Declarations
class cUOPacket;
! class AccountRecord;
class cTargetRequest;
class cGump;
--- 42,46 ----
// Forward Declarations
class cUOPacket;
! class cAccount;
class cTargetRequest;
class cGump;
***************
*** 72,76 ****
QSocketDevice *_socket;
UINT32 _rxBytes, _txBytes, _uniqueId;
! AccountRecord* _account;
P_PLAYER _player;
eSocketState _state;
--- 72,76 ----
QSocketDevice *_socket;
UINT32 _rxBytes, _txBytes, _uniqueId;
! cAccount* _account;
P_PLAYER _player;
eSocketState _state;
***************
*** 115,120 ****
P_PLAYER player( void ) const;
P_ITEM dragging() const;
! AccountRecord* account( void ) const { return _account; }
! void setAccount( AccountRecord* data ) { _account = data; }
--- 115,120 ----
P_PLAYER player( void ) const;
P_ITEM dragging() const;
! cAccount* account( void ) const { return _account; }
! void setAccount( cAccount* data ) { _account = data; }
|