mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 16:46:37 +00:00
More numeric to constant conversions..should be most of them... Please report any inventory abnormalities.
This commit is contained in:
+5
-5
@@ -5136,13 +5136,13 @@ bool Merc::Spawn(Client *owner) {
|
||||
//printf("Spawned Merc with ID %i\n", npc->GetID()); fflush(stdout);
|
||||
|
||||
/*
|
||||
uint32 itemID = 0;
|
||||
uint8 materialFromSlot = 0xFF;
|
||||
for(int i=0; i<22; ++i) {
|
||||
uint32 itemID = NO_ITEM;
|
||||
uint8 materialFromSlot = _MaterialInvalid;
|
||||
for(int i=EmuConstants::EQUIPMENT_BEGIN; i<=EmuConstants::EQUIPMENT_END; ++i) {
|
||||
itemID = GetMercItemBySlot(i);
|
||||
if(itemID != 0) {
|
||||
if(itemID != NO_ITEM) {
|
||||
materialFromSlot = Inventory::CalcMaterialFromSlot(i);
|
||||
if(materialFromSlot != 0xFF) {
|
||||
if(materialFromSlot != _MaterialInvalid) {
|
||||
this->SendWearChange(materialFromSlot);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user