diff options
author | megamage <none@none> | 2009-05-03 22:21:46 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-03 22:21:46 -0500 |
commit | 1cfc04f1f59b0a3d8c75b901554cd05ec90158ce (patch) | |
tree | 3e74e030fd9c21b94d9e60c16629b0264b36d9d2 /src/game/Player.cpp | |
parent | 5f167c56ef03ae7dfe69f3bd927612bf3cfa4991 (diff) |
[7745] Fixed gcc warnings. Author: AlexDereka
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 966c23623be..f21b473453a 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -1936,6 +1936,7 @@ void Player::Regenerate(Powers power) } break; case POWER_FOCUS: case POWER_HAPPINESS: + case POWER_HEALTH: break; } @@ -4897,6 +4898,8 @@ void Player::ApplyRatingMod(CombatRating cr, int32 value, bool apply) UpdateExpertise(OFF_ATTACK); } break; + case CR_ARMOR_PENETRATION: + break; } } @@ -5696,7 +5699,7 @@ uint32 Player::TeamForRace(uint8 race) case 1: return HORDE; } - sLog.outError("Race %u have wrong team id in DBC: wrong DBC files?",uint32(race),rEntry->TeamID); + sLog.outError("Race %u have wrong teamid %u in DBC: wrong DBC files?",uint32(race),rEntry->TeamID); return ALLIANCE; } @@ -9950,7 +9953,6 @@ uint8 Player::CanBankItem( uint8 bag, uint8 slot, ItemPosCountVec &dest, Item *p if (!pItem->IsBag()) return EQUIP_ERR_ITEM_DOESNT_GO_TO_SLOT; - Bag *pBag = (Bag*)pItem; if( !HasBankBagSlot( slot ) ) return EQUIP_ERR_MUST_PURCHASE_THAT_BAG_SLOT; @@ -13305,7 +13307,6 @@ void Player::AdjustQuestReqItemCount( Quest const* pQuest, QuestStatusData& ques uint32 reqitemcount = pQuest->ReqItemCount[i]; if( reqitemcount != 0 ) { - uint32 quest_id = pQuest->GetQuestId(); uint32 curitemcount = GetItemCount(pQuest->ReqItemId[i],true); questStatusData.m_itemcount[i] = std::min(curitemcount, reqitemcount); @@ -19102,7 +19103,7 @@ uint32 Player::GetResurrectionSpellId() case 27239: spell_id = 27240; break; // rank 6 case 47883: spell_id = 47882; break; // rank 7 default: - sLog.outError("Unhandled spell %%u: S.Resurrection",(*itr)->GetId()); + sLog.outError("Unhandled spell %u: S.Resurrection",(*itr)->GetId()); continue; } |