mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Fix some Linux build problems
--HG-- branch : trunk
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "AuctionHouseMgr.h"
|
||||
#include "AuctionHouseBot.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include "AuctionHouseMgr.h"
|
||||
#if CLIENT_VER > 300
|
||||
#else if CLIENT_VER > 100
|
||||
#include <vector>
|
||||
|
||||
@@ -901,7 +901,7 @@ public:
|
||||
{
|
||||
switch(Class)
|
||||
{
|
||||
case ITEM_CLASS_TRADE_GOODS:
|
||||
case 7:
|
||||
DecItemCounts(Quality);
|
||||
break;
|
||||
default:
|
||||
@@ -965,7 +965,7 @@ public:
|
||||
{
|
||||
switch(Class)
|
||||
{
|
||||
case ITEM_CLASS_TRADE_GOODS:
|
||||
case 7:
|
||||
IncItemCounts(Quality);
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -486,6 +486,18 @@ AuctionHouseEntry const* AuctionHouseMgr::GetAuctionHouseEntry(uint32 factionTem
|
||||
|
||||
return sAuctionHouseStore.LookupEntry(houseid);
|
||||
}
|
||||
void AuctionHouseObject::AddAuction(AuctionEntry *ah)
|
||||
{
|
||||
ASSERT(ah);
|
||||
AuctionsMap[ah->Id] = ah;
|
||||
auctionbot.IncrementItemCounts(ah);
|
||||
}
|
||||
|
||||
bool AuctionHouseObject::RemoveAuction(AuctionEntry *auction, uint32 item_template)
|
||||
{
|
||||
auctionbot.DecrementItemCounts(auction, item_template);
|
||||
return AuctionsMap.erase(auction->Id) ? true : false;
|
||||
}
|
||||
|
||||
void AuctionHouseObject::Update()
|
||||
{
|
||||
|
||||
@@ -93,24 +93,15 @@ class AuctionHouseObject
|
||||
AuctionEntryMap::iterator GetAuctionsBegin() {return AuctionsMap.begin();}
|
||||
AuctionEntryMap::iterator GetAuctionsEnd() {return AuctionsMap.end();}
|
||||
|
||||
void AddAuction(AuctionEntry *ah)
|
||||
{
|
||||
ASSERT(ah);
|
||||
AuctionsMap[ah->Id] = ah;
|
||||
auctionbot.IncrementItemCounts(ah);
|
||||
}
|
||||
|
||||
AuctionEntry* GetAuction(uint32 id) const
|
||||
{
|
||||
AuctionEntryMap::const_iterator itr = AuctionsMap.find(id);
|
||||
return itr != AuctionsMap.end() ? itr->second : NULL;
|
||||
}
|
||||
|
||||
bool RemoveAuction(AuctionEntry *auction, uint32 item_template)
|
||||
{
|
||||
auctionbot.DecrementItemCounts(auction, item_template);
|
||||
return AuctionsMap.erase(auction->Id) ? true : false;
|
||||
}
|
||||
void AddAuction(AuctionEntry *ah);
|
||||
|
||||
bool RemoveAuction(AuctionEntry *auction, uint32 item_template);
|
||||
|
||||
void Update();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user