mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[7840] Fixed unexpected rounding in pet size scale calculation.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
1f2670facf
commit
53699e1aa3
2 changed files with 2 additions and 2 deletions
|
|
@ -853,7 +853,7 @@ bool Pet::InitStatsForLevel(uint32 petlevel)
|
||||||
else if (getLevel() <= cFamily->minScaleLevel)
|
else if (getLevel() <= cFamily->minScaleLevel)
|
||||||
scale = cFamily->minScale;
|
scale = cFamily->minScale;
|
||||||
else
|
else
|
||||||
scale = cFamily->minScale + (getLevel() - cFamily->minScaleLevel) / cFamily->maxScaleLevel * (cFamily->maxScale - cFamily->minScale);
|
scale = cFamily->minScale + float(getLevel() - cFamily->minScaleLevel) / cFamily->maxScaleLevel * (cFamily->maxScale - cFamily->minScale);
|
||||||
|
|
||||||
SetFloatValue(OBJECT_FIELD_SCALE_X, scale);
|
SetFloatValue(OBJECT_FIELD_SCALE_X, scale);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7839"
|
#define REVISION_NR "7840"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue