mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7730] Some optimizantion and code style.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
This commit is contained in:
parent
a4373c887d
commit
8144f30199
69 changed files with 536 additions and 536 deletions
|
|
@ -594,7 +594,7 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder * holder)
|
|||
data.Initialize( SMSG_ACCOUNT_DATA_TIMES, 4+1+8*4 ); // changed in WotLK
|
||||
data << uint32(time(NULL)); // unix time of something
|
||||
data << uint8(1);
|
||||
for(int i = 0; i < NUM_ACCOUNT_DATA_TYPES; i++)
|
||||
for(int i = 0; i < NUM_ACCOUNT_DATA_TYPES; ++i)
|
||||
data << uint32(GetAccountData(i)->Time); // also unix time
|
||||
SendPacket(&data);
|
||||
|
||||
|
|
@ -915,14 +915,14 @@ void WorldSession::HandleTutorialFlag( WorldPacket & recv_data )
|
|||
|
||||
void WorldSession::HandleTutorialClear( WorldPacket & /*recv_data*/ )
|
||||
{
|
||||
for ( uint32 iI = 0; iI < 8; iI++)
|
||||
GetPlayer()->SetTutorialInt( iI, 0xFFFFFFFF );
|
||||
for (int i = 0; i < 8; ++i)
|
||||
GetPlayer()->SetTutorialInt( i, 0xFFFFFFFF );
|
||||
}
|
||||
|
||||
void WorldSession::HandleTutorialReset( WorldPacket & /*recv_data*/ )
|
||||
{
|
||||
for ( uint32 iI = 0; iI < 8; iI++)
|
||||
GetPlayer()->SetTutorialInt( iI, 0x00000000 );
|
||||
for (int i = 0; i < 8; ++i)
|
||||
GetPlayer()->SetTutorialInt( i, 0x00000000 );
|
||||
}
|
||||
|
||||
void WorldSession::HandleSetWatchedFactionIndexOpcode(WorldPacket & recv_data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue