Player health regen fixed - temporary fix

The regen wroks, but only due to assigning the default regen value as a
constant, instead of loading it from the mangosd.conf file.

The reading of the value from the mangosd.conf file still needs to be
fixed.
This commit is contained in:
Charles A Edwards 2016-09-06 09:11:43 +01:00 committed by Antz
parent 0569fdf697
commit 5a1f96eef5

View file

@ -2247,6 +2247,8 @@ void Player::RegenerateHealth(uint32 diff)
if (curValue >= maxValue) return;
float HealthIncreaseRate = sWorld.getConfig(CONFIG_FLOAT_RATE_HEALTH);
// This needs fixing
HealthIncreaseRate = 1.0f; // having to do this as the above constantly results in 0 - mangosd.conf is obviously not being read properly
float addvalue = 0.0f;