[7864] Use x.0f float constant format. Author: NoFantasy

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-21 10:52:35 -05:00
parent 5fe179019f
commit 6d6a4a7856
3 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -242,7 +242,7 @@ void LootStore::ReportNotExistedId(uint32 id) const
// RATE_DROP_ITEMS is no longer used for all types of entries
bool LootStoreItem::Roll(bool rate) const
{
if(chance>=100.f)
if(chance>=100.0f)
return true;
if(mincountOrRef < 0) // reference case
@@ -820,7 +820,7 @@ LootStoreItem const * LootTemplate::LootGroup::Roll() const
for (uint32 i=0; i<ExplicitlyChanced.size(); ++i) //check each explicitly chanced entry in the template and modify its chance based on quality.
{
if(ExplicitlyChanced[i].chance>=100.f)
if(ExplicitlyChanced[i].chance>=100.0f)
return &ExplicitlyChanced[i];
Roll -= ExplicitlyChanced[i].chance;