removed unnecessary comments

This commit is contained in:
ricardocampos23
2014-04-19 08:45:33 +01:00
parent 6a3ee3b9d6
commit 2f772e5e91
6 changed files with 4 additions and 14 deletions
+1 -3
View File
@@ -4926,9 +4926,7 @@ char* SerializeItem(const ItemInst *inst, int16 slot_id_in, uint32 *length, uint
ss.write((const char*)&null_term, sizeof(uint8)); 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. if (RuleB(Inventory,UseAugOrnamentations) && inst && inst->HasOrnamentation())
// 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)
{ {
ItemInst* ornamentation = inst->GetOrnamentation(); ItemInst* ornamentation = inst->GetOrnamentation();
if (ornamentation) //paranoid! if (ornamentation) //paranoid!
+1 -3
View File
@@ -3119,9 +3119,7 @@ char* SerializeItem(const ItemInst *inst, int16 slot_id_in, uint32 *length, uint
ss.write((const char*)&null_term, sizeof(uint8)); 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. if (RuleB(Inventory,UseAugOrnamentations) && inst && inst->HasOrnamentation())
// 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)
{ {
ItemInst* ornamentation = inst->GetOrnamentation(); ItemInst* ornamentation = inst->GetOrnamentation();
if (ornamentation) //paranoid! if (ornamentation) //paranoid!
+1 -3
View File
@@ -2437,9 +2437,7 @@ char* SerializeItem(const ItemInst *inst, int16 slot_id_in, uint32 *length, uint
ss.write((const char*)&null_term, sizeof(uint8)); 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. if (RuleB(Inventory,UseAugOrnamentations) && inst && inst->HasOrnamentation())
// 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)
{ {
ItemInst* ornamentation = inst->GetOrnamentation(); ItemInst* ornamentation = inst->GetOrnamentation();
if (ornamentation) //paranoid! if (ornamentation) //paranoid!
+1 -3
View File
@@ -3530,9 +3530,7 @@ char* SerializeItem(const ItemInst *inst, int16 slot_id_in, uint32 *length, uint
ss.write((const char*)&null_term, sizeof(uint8)); 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. if (RuleB(Inventory,UseAugOrnamentations) && inst && inst->HasOrnamentation())
// 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)
{ {
ItemInst* ornamentation = inst->GetOrnamentation(); ItemInst* ornamentation = inst->GetOrnamentation();
if (ornamentation) //paranoid! if (ornamentation) //paranoid!
-1
View File
@@ -4567,7 +4567,6 @@ void Bot::SetLevel(uint8 in_level, bool command) {
int32 Bot::GetEquipmentMaterial(uint8 material_slot) const 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 if // for primary and secondary we need the model, not the material
( (
material_slot == MaterialPrimary || material_slot == MaterialPrimary ||
-1
View File
@@ -1889,7 +1889,6 @@ void Client::DyeArmor(DyeStruct* dye){
int32 Client::GetEquipmentMaterial(uint8 material_slot) const 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 if // for primary and secondary we need the model, not the material
( (
material_slot == MaterialPrimary || material_slot == MaterialPrimary ||