mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[11228] Correct constant in CalculateRewardHonor
0.1000000014901161 actually is single precision approximation for 0.1 in IEEE 754 standard.
This commit is contained in:
parent
ad6ab0bc49
commit
777e4e0fb2
2 changed files with 2 additions and 2 deletions
|
|
@ -286,7 +286,7 @@ uint32 Quest::CalculateRewardHonor(uint32 level) const
|
|||
TeamContributionPoints const* tc = sTeamContributionPoints.LookupEntry(level-1);
|
||||
if(!tc)
|
||||
return 0;
|
||||
uint32 i_honor = uint32(tc->Value * GetRewHonorMultiplier() * 0.1000000014901161);
|
||||
uint32 i_honor = uint32(tc->Value * GetRewHonorMultiplier() * 0.1f);
|
||||
honor = i_honor + GetRewHonorAddition();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue