mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7745] Fixed gcc warnings.
This commit is contained in:
parent
8d3585f5ee
commit
27fabf7ace
24 changed files with 145 additions and 128 deletions
|
|
@ -1872,6 +1872,7 @@ void Player::Regenerate(Powers power)
|
|||
} break;
|
||||
case POWER_FOCUS:
|
||||
case POWER_HAPPINESS:
|
||||
case POWER_HEALTH:
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -4821,6 +4822,8 @@ void Player::ApplyRatingMod(CombatRating cr, int32 value, bool apply)
|
|||
UpdateExpertise(OFF_ATTACK);
|
||||
}
|
||||
break;
|
||||
case CR_ARMOR_PENETRATION:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5620,7 +5623,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;
|
||||
}
|
||||
|
||||
|
|
@ -9672,7 +9675,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;
|
||||
|
||||
|
|
@ -13027,7 +13029,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);
|
||||
|
|
@ -18530,7 +18531,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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue