From de11b9e901d1d1caa0634fad541f08f11c5781af Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 29 Apr 2009 00:26:07 -0500 Subject: [7730] Some optimizantion and code style. Author: zhenya --HG-- branch : trunk --- src/game/CharacterHandler.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/game/CharacterHandler.cpp') diff --git a/src/game/CharacterHandler.cpp b/src/game/CharacterHandler.cpp index a2e189603f9..ca6a96c3b08 100644 --- a/src/game/CharacterHandler.cpp +++ b/src/game/CharacterHandler.cpp @@ -600,7 +600,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); @@ -931,14 +931,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) -- cgit v1.2.3