forked from mirror/openmw-tes3mp
Remove unwanted warnings
This commit is contained in:
parent
9d826b2deb
commit
771f58ce58
1 changed files with 0 additions and 4 deletions
|
@ -96,8 +96,6 @@ namespace
|
||||||
leftChargePercent = (left.mBase.getCellRef().getEnchantmentCharge() == -1) ? 100
|
leftChargePercent = (left.mBase.getCellRef().getEnchantmentCharge() == -1) ? 100
|
||||||
: static_cast<int>(left.mBase.getCellRef().getEnchantmentCharge() / static_cast<float>(ench->mData.mCharge) * 100);
|
: static_cast<int>(left.mBase.getCellRef().getEnchantmentCharge() / static_cast<float>(ench->mData.mCharge) * 100);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
std::cerr << "Warning: Can't find enchantment '" << leftName << "' on item " << left.mBase.getCellRef().getRefId() << std::endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!rightName.empty())
|
if (!rightName.empty())
|
||||||
|
@ -111,8 +109,6 @@ namespace
|
||||||
rightChargePercent = (right.mBase.getCellRef().getEnchantmentCharge() == -1) ? 100
|
rightChargePercent = (right.mBase.getCellRef().getEnchantmentCharge() == -1) ? 100
|
||||||
: static_cast<int>(right.mBase.getCellRef().getEnchantmentCharge() / static_cast<float>(ench->mData.mCharge) * 100);
|
: static_cast<int>(right.mBase.getCellRef().getEnchantmentCharge() / static_cast<float>(ench->mData.mCharge) * 100);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
std::cerr << "Warning: Can't find enchantment '" << rightName << "' on item " << right.mBase.getCellRef().getRefId() << std::endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
result = leftChargePercent - rightChargePercent;
|
result = leftChargePercent - rightChargePercent;
|
||||||
|
|
Loading…
Reference in a new issue