game and db is building on windows
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#include "DragonSoul.h"
|
||||
#include "buff_on_attributes.h"
|
||||
#include "belt_inventory_helper.h"
|
||||
#include "../../common/VnumHelper.h"
|
||||
#include "common/VnumHelper.h"
|
||||
|
||||
CItem::CItem(DWORD dwVnum)
|
||||
: m_dwVnum(dwVnum), m_bWindow(0), m_dwID(0), m_bEquipped(false), m_dwVID(0), m_wCell(0), m_dwCount(0), m_lFlag(0), m_dwLastOwnerPID(0),
|
||||
@@ -151,7 +151,7 @@ void CItem::EncodeInsertPacket(LPENTITY ent)
|
||||
|
||||
p.bHeader = HEADER_GC_ITEM_OWNERSHIP;
|
||||
p.dwVID = m_dwVID;
|
||||
strlcpy(p.szName, info->szOwnerName, sizeof(p.szName));
|
||||
std::strncpy(p.szName, info->szOwnerName, sizeof(p.szName));
|
||||
|
||||
d->Packet(&p, sizeof(TPacketGCItemOwnership));
|
||||
}
|
||||
@@ -1147,7 +1147,7 @@ void CItem::SetOwnership(LPCHARACTER ch, int iSec)
|
||||
m_dwOwnershipPID = ch->GetPlayerID();
|
||||
|
||||
item_event_info* info = AllocEventInfo<item_event_info>();
|
||||
strlcpy(info->szOwnerName, ch->GetName(), sizeof(info->szOwnerName));
|
||||
std::strncpy(info->szOwnerName, ch->GetName(), sizeof(info->szOwnerName));
|
||||
info->item = this;
|
||||
|
||||
SetOwnershipEvent(event_create(ownership_event, info, PASSES_PER_SEC(iSec)));
|
||||
@@ -1156,7 +1156,7 @@ void CItem::SetOwnership(LPCHARACTER ch, int iSec)
|
||||
|
||||
p.bHeader = HEADER_GC_ITEM_OWNERSHIP;
|
||||
p.dwVID = m_dwVID;
|
||||
strlcpy(p.szName, ch->GetName(), sizeof(p.szName));
|
||||
std::strncpy(p.szName, ch->GetName(), sizeof(p.szName));
|
||||
|
||||
PacketAround(&p, sizeof(p));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user