mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 19:37:01 +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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11227"
|
||||
#define REVISION_NR "11228"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue