From 2f772e5e916cb5480db98d157229253782041f49 Mon Sep 17 00:00:00 2001 From: ricardocampos23 Date: Sat, 19 Apr 2014 08:45:33 +0100 Subject: [PATCH] removed unnecessary comments --- common/patches/RoF.cpp | 4 +--- common/patches/SoD.cpp | 4 +--- common/patches/SoF.cpp | 4 +--- common/patches/Underfoot.cpp | 4 +--- zone/bot.cpp | 1 - zone/inventory.cpp | 1 - 6 files changed, 4 insertions(+), 14 deletions(-) diff --git a/common/patches/RoF.cpp b/common/patches/RoF.cpp index 462d47367..7b65d301d 100644 --- a/common/patches/RoF.cpp +++ b/common/patches/RoF.cpp @@ -4926,9 +4926,7 @@ char* SerializeItem(const ItemInst *inst, int16 slot_id_in, uint32 *length, uint ss.write((const char*)&null_term, sizeof(uint8)); } - // Moofta: if the item has an aug of type 20 (ornamentation) then we use the ID file of that when serializing. - // the only thing we should probably worry about is generating a wear change packet to all cl;ients in zone if someone adds a type 20 aug. - if (RuleB(Inventory,UseAugOrnamentations) && inst && inst->HasOrnamentation()) //instance is not null and does have an ornament aug (slot 20) + if (RuleB(Inventory,UseAugOrnamentations) && inst && inst->HasOrnamentation()) { ItemInst* ornamentation = inst->GetOrnamentation(); if (ornamentation) //paranoid! diff --git a/common/patches/SoD.cpp b/common/patches/SoD.cpp index e6853c314..460be1e1f 100644 --- a/common/patches/SoD.cpp +++ b/common/patches/SoD.cpp @@ -3119,9 +3119,7 @@ char* SerializeItem(const ItemInst *inst, int16 slot_id_in, uint32 *length, uint ss.write((const char*)&null_term, sizeof(uint8)); } - // Moofta: if the item has an aug of type 20 (ornamentation) then we use the ID file of that when serializing. - // the only thing we should probably worry about is generating a wear change packet to all cl;ients in zone if someone adds a type 20 aug. - if (RuleB(Inventory,UseAugOrnamentations) && inst && inst->HasOrnamentation()) //instance is not null and does have an ornament aug (slot 20) + if (RuleB(Inventory,UseAugOrnamentations) && inst && inst->HasOrnamentation()) { ItemInst* ornamentation = inst->GetOrnamentation(); if (ornamentation) //paranoid! diff --git a/common/patches/SoF.cpp b/common/patches/SoF.cpp index b989aa28e..6bfd22538 100644 --- a/common/patches/SoF.cpp +++ b/common/patches/SoF.cpp @@ -2437,9 +2437,7 @@ char* SerializeItem(const ItemInst *inst, int16 slot_id_in, uint32 *length, uint ss.write((const char*)&null_term, sizeof(uint8)); } - // Moofta: if the item has an aug of type 20/524288 (ornamentation) then we use the ID file of that when serializing. - // the only thing we should probably worry about is generating a wear change packet to all cl;ients in zone if someone adds a type 20 aug. - if (RuleB(Inventory,UseAugOrnamentations) && inst && inst->HasOrnamentation()) //instance is not null and does have an ornament aug (slot 20) + if (RuleB(Inventory,UseAugOrnamentations) && inst && inst->HasOrnamentation()) { ItemInst* ornamentation = inst->GetOrnamentation(); if (ornamentation) //paranoid! diff --git a/common/patches/Underfoot.cpp b/common/patches/Underfoot.cpp index c9524c3f5..0c51c4823 100644 --- a/common/patches/Underfoot.cpp +++ b/common/patches/Underfoot.cpp @@ -3530,9 +3530,7 @@ char* SerializeItem(const ItemInst *inst, int16 slot_id_in, uint32 *length, uint ss.write((const char*)&null_term, sizeof(uint8)); } - // Moofta: if the item has an aug of type 20 (ornamentation) then we use the ID file of that when serializing. - // the only thing we should probably worry about is generating a wear change packet to all clients in zone if someone adds a type 20 aug. - if (RuleB(Inventory,UseAugOrnamentations) && inst && inst->HasOrnamentation()) //instance is not null and does have an ornament aug (slot 20) + if (RuleB(Inventory,UseAugOrnamentations) && inst && inst->HasOrnamentation()) { ItemInst* ornamentation = inst->GetOrnamentation(); if (ornamentation) //paranoid! diff --git a/zone/bot.cpp b/zone/bot.cpp index e08a13826..1ba12ec4b 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -4567,7 +4567,6 @@ void Bot::SetLevel(uint8 in_level, bool command) { int32 Bot::GetEquipmentMaterial(uint8 material_slot) const { - // Moofta: Only supporting primary and secondary. next stage is heros forge. which could be any! if // for primary and secondary we need the model, not the material ( material_slot == MaterialPrimary || diff --git a/zone/inventory.cpp b/zone/inventory.cpp index 4f1bcdb8b..dbc3fca04 100644 --- a/zone/inventory.cpp +++ b/zone/inventory.cpp @@ -1889,7 +1889,6 @@ void Client::DyeArmor(DyeStruct* dye){ int32 Client::GetEquipmentMaterial(uint8 material_slot) const { - // Moofta: Only supporting primary and secondary. next stage is heros forge. which could be any! if // for primary and secondary we need the model, not the material ( material_slot == MaterialPrimary ||