From 6d6a4a78567eb6c18848ab38374c017289018938 Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 21 May 2009 10:52:35 -0500 Subject: [7864] Use x.0f float constant format. Author: NoFantasy --HG-- branch : trunk --- src/game/LootMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/LootMgr.cpp') 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=100.f) + if(ExplicitlyChanced[i].chance>=100.0f) return &ExplicitlyChanced[i]; Roll -= ExplicitlyChanced[i].chance; -- cgit v1.2.3