[7864] Use x.0f float constant format.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
NoFantasy 2009-05-21 17:15:23 +04:00 committed by VladimirMangos
parent bde5402b40
commit 50898eedde
4 changed files with 13 additions and 13 deletions

View file

@ -239,7 +239,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
@ -817,7 +817,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;