mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-06 00:32:25 +00:00
convert int16 to int8 explicitly
This commit is contained in:
parent
f8115a4bd7
commit
02a457e601
@ -1267,7 +1267,7 @@ void Client::Handle_OP_ClientUpdate(const EQApplicationPacket *app)
|
||||
PlayerPositionUpdateServer_Struct* ppu = (PlayerPositionUpdateServer_Struct*)outapp->pBuffer;
|
||||
MakeSpawnUpdate(ppu);
|
||||
if (gmhideme)
|
||||
entity_list.QueueClientsStatus(this,outapp,true,Admin(),250);
|
||||
entity_list.QueueClientsStatus(this,outapp,true,(uint8)Admin(),250);
|
||||
else
|
||||
entity_list.QueueCloseClients(this,outapp,true,300,nullptr,false);
|
||||
safe_delete(outapp);
|
||||
|
||||
@ -445,7 +445,7 @@ std::list<uint32> Corpse::MoveItemToCorpse(Client *client, ItemInst *item, int16
|
||||
ItemInst *interior_item;
|
||||
std::list<uint32> returnlist;
|
||||
|
||||
AddItem(item->GetItem()->ID, item->GetCharges(), equipslot, item->GetAugmentItemID(0), item->GetAugmentItemID(1), item->GetAugmentItemID(2), item->GetAugmentItemID(3), item->GetAugmentItemID(4));
|
||||
AddItem(item->GetItem()->ID, (uint8)item->GetCharges(), equipslot, item->GetAugmentItemID(0), item->GetAugmentItemID(1), item->GetAugmentItemID(2), item->GetAugmentItemID(3), item->GetAugmentItemID(4));
|
||||
returnlist.push_back(equipslot);
|
||||
|
||||
// Qualified bag slot iterations. processing bag slots that don't exist is probably not a good idea.
|
||||
@ -459,7 +459,7 @@ std::list<uint32> Corpse::MoveItemToCorpse(Client *client, ItemInst *item, int16
|
||||
|
||||
if(interior_item)
|
||||
{
|
||||
AddItem(interior_item->GetItem()->ID, interior_item->GetCharges(), interior_slot, interior_item->GetAugmentItemID(0), interior_item->GetAugmentItemID(1), interior_item->GetAugmentItemID(2), interior_item->GetAugmentItemID(3), interior_item->GetAugmentItemID(4));
|
||||
AddItem(interior_item->GetItem()->ID, (uint8)interior_item->GetCharges(), interior_slot, interior_item->GetAugmentItemID(0), interior_item->GetAugmentItemID(1), interior_item->GetAugmentItemID(2), interior_item->GetAugmentItemID(3), interior_item->GetAugmentItemID(4));
|
||||
returnlist.push_back(Inventory::CalcSlotId(equipslot, bagindex));
|
||||
client->DeleteItemInInventory(interior_slot, 0, true, false);
|
||||
}
|
||||
@ -574,7 +574,7 @@ bool Corpse::Save() {
|
||||
CorpseRace = race;
|
||||
}
|
||||
|
||||
dbpc->race = CorpseRace;
|
||||
dbpc->race = (uint8)CorpseRace;
|
||||
dbpc->class_ = class_;
|
||||
dbpc->gender = gender;
|
||||
dbpc->deity = deity;
|
||||
|
||||
@ -1640,7 +1640,7 @@ bool Client::SwapItem(MoveItem_Struct* move_in) {
|
||||
}
|
||||
}
|
||||
|
||||
int matslot = SlotConvert2(dst_slot_id);
|
||||
int matslot = SlotConvert2((uint8)dst_slot_id);
|
||||
if (dst_slot_id<22 && matslot != 0) {
|
||||
SendWearChange(matslot);
|
||||
}
|
||||
|
||||
@ -1289,7 +1289,7 @@ void PathManager::OpenDoors(int Node1, int Node2, Mob *ForWho)
|
||||
|
||||
if(PathNodes[Node1].Neighbours[i].DoorID >= 0)
|
||||
{
|
||||
Doors *d = entity_list.FindDoor(PathNodes[Node1].Neighbours[i].DoorID);
|
||||
Doors *d = entity_list.FindDoor((uint8)PathNodes[Node1].Neighbours[i].DoorID);
|
||||
|
||||
if(d && !d->IsDoorOpen() )
|
||||
{
|
||||
|
||||
@ -1060,7 +1060,7 @@ void Client::TraderUpdate(uint16 SlotID,uint32 TraderID){
|
||||
EQApplicationPacket* outapp = new EQApplicationPacket(OP_TraderItemUpdate,sizeof(TraderItemUpdate_Struct));
|
||||
TraderItemUpdate_Struct* tus=(TraderItemUpdate_Struct*)outapp->pBuffer;
|
||||
tus->Charges = 0xFFFF;
|
||||
tus->FromSlot = SlotID;
|
||||
tus->FromSlot = (uint8)SlotID;
|
||||
tus->ToSlot = 0xFF;
|
||||
tus->TraderID = TraderID;
|
||||
tus->Unknown000 = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user