mirror of
https://github.com/mangosfour/server.git
synced 2025-12-24 19:37:07 +00:00
[7864] Use x.0f float constant format.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
bde5402b40
commit
50898eedde
4 changed files with 13 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue