[7745] Fixed gcc warnings. Author: AlexDereka
--HG-- branch : trunk
This commit is contained in:
1 parent
5f167c56ef
commit
1cfc04f1f5
18 files changed
+62
-37
No files matched your search
+5
-4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user