aboutsummaryrefslogtreecommitdiff
path: root/src/game/LootMgr.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-21 10:52:35 -0500
committermegamage <none@none>2009-05-21 10:52:35 -0500
commit6d6a4a78567eb6c18848ab38374c017289018938 (patch)
treec3a703e38ae8f50cecdc47ce4ee881f67993af08 /src/game/LootMgr.cpp
parent5fe179019fded52718f6fce9a76c052785df48a5 (diff)
[7864] Use x.0f float constant format. Author: NoFantasy
--HG-- branch : trunk
Diffstat (limited to 'src/game/LootMgr.cpp')
-rw-r--r--src/game/LootMgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/LootMgr.cpp b/src/game/LootMgr.cpp
index 267749fd5a4..86cbeb75b0b 100644
--- a/src/game/LootMgr.cpp
+++ b/src/game/LootMgr.cpp
@@ -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;