Update of /cvsroot/wpdev/wolfpack/network
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14058/network
Modified Files:
uosocket.cpp
Log Message:
fixes
Index: uosocket.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uosocket.cpp,v
retrieving revision 1.425
retrieving revision 1.426
diff -C2 -d -r1.425 -r1.426
*** uosocket.cpp 8 Oct 2004 10:57:10 -0000 1.425
--- uosocket.cpp 8 Oct 2004 12:16:08 -0000 1.426
***************
*** 637,641 ****
QValueVector<P_PLAYER> characters = _account->caracterList();
! if ( packet->slot() > characters.size() )
{
cUOTxDenyLogin denyLogin;
--- 637,641 ----
QValueVector<P_PLAYER> characters = _account->caracterList();
! if ( packet->slot() >= characters.size() )
{
cUOTxDenyLogin denyLogin;
***************
*** 654,658 ****
_account->setInUse( true );
! playChar( characters.at( packet->slot() ) );
_player->onLogin();
}
--- 654,661 ----
_account->setInUse( true );
!
! P_PLAYER pChar = characters.at(packet->slot());
! log(LOG_MESSAGE, tr("Selected character '%1' (0x%2).\n").arg(pChar->name()).arg(pChar->serial(), 0, 16));
! playChar( pChar );
_player->onLogin();
}
***************
*** 1071,1079 ****
pChar->giveNewbieItems( skillid2 );
// Start the game with the newly created char -- OR RELAY HIM !!
playChar( pChar );
pChar->onLogin();
- // Processes a create character request
- // Notes from Lord Binaries packet documentation:
#undef cancelCreate
}
--- 1074,1083 ----
pChar->giveNewbieItems( skillid2 );
+ log(LOG_MESSAGE, tr("Created character '%1' (0x%2).\n").arg(pChar->name()).arg(pChar->serial(), 0, 16));
+
// Start the game with the newly created char -- OR RELAY HIM !!
playChar( pChar );
+ pChar->onCreate(pChar->baseid()); // Call onCreate before onLogin
pChar->onLogin();
#undef cancelCreate
}
|