[10110] Add function Get/SetObjectScale and update code where scale is set.

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-06-27 12:38:57 +02:00
parent bb3b0bd598
commit 2375a1cb71
14 changed files with 35 additions and 16 deletions

View file

@ -2704,8 +2704,8 @@ void Player::InitStatsForLevel(bool reapplyMods)
// set default cast time multiplier
SetFloatValue(UNIT_MOD_CAST_SPEED, 1.0f);
// reset size before reapply auras
SetFloatValue(OBJECT_FIELD_SCALE_X,1.0f);
// reset scale before reapply auras
SetObjectScale(DEFAULT_OBJECT_SCALE);
// save base values (bonuses already included in stored stats
for(int i = STAT_STRENGTH; i < MAX_STATS; ++i)