diff options
author | megamage <none@none> | 2009-02-24 11:14:28 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-24 11:14:28 -0600 |
commit | 699bc588b86a5176fce0900804fb7d00425383fe (patch) | |
tree | 18dde44b0118d86bfeaf294f7917c7ff0310fbbd /src/game/Level3.cpp | |
parent | 9d160c855fe950d96386165fe7f6e484b427b89d (diff) |
[7330] Code warnings and style cleanups. Some bugs fixes. Author: VladimirMangos
1) comparison singed and unsigned values
2) redundent includes
3) wrong constructor :-part field initilization
4) unused not-/*name*/-guarded args in template/virtual functions that not required like args.
5) explicitly list not implemented achievement types.
Also bugs fixed:
1) Drop wrong phase mask 0 check in WorldObject::InSamePhase.
2) ArenaTeamMember::ModifyPersonalRating incorrect work with move points in negative with infinity values in result.
3) ArenaTeam::SaveToDB code send uint64 value to string with arg format %u.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r-- | src/game/Level3.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp index 0097da93525..8eb2a07b905 100644 --- a/src/game/Level3.cpp +++ b/src/game/Level3.cpp @@ -3553,7 +3553,7 @@ bool ChatHandler::HandleGuildInviteCommand(const char *args) plGuid = objmgr.GetPlayerGUIDByName (plName); if (!plGuid) - false; + return false; // player's guild membership checked in AddMember before add if (!targetGuild->AddMember (plGuid,targetGuild->GetLowestRank ())) @@ -6985,8 +6985,6 @@ bool ChatHandler::HandleSendMoneyCommand(const char* args) return false; } - uint32 mailId = objmgr.GenerateMailID(); - // from console show not existed sender uint32 sender_guidlo = m_session ? m_session->GetPlayer()->GetGUIDLow() : 0; |