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