Build error fixes

2 build errors left at this point.

The weather system needs to be implemented in the same way as the
previous cores. That should resolve one or even both of the last errors.
This commit is contained in:
Charles A Edwards 2016-02-04 16:21:30 +00:00 committed by Antz
parent bb2f41482c
commit 9e94234bdf
12 changed files with 124 additions and 18 deletions

View file

@ -19397,20 +19397,20 @@ void Player::InitDataForForm(bool reapplyMods)
case FORM_CAT:
{
if (GetPowerType() != POWER_ENERGY)
setPowerType(POWER_ENERGY);
SetPowerType(POWER_ENERGY);
break;
}
case FORM_BEAR:
{
if (GetPowerType() != POWER_RAGE)
setPowerType(POWER_RAGE);
SetPowerType(POWER_RAGE);
break;
}
default: // 0, for example
{
ChrClassesEntry const* cEntry = sChrClassesStore.LookupEntry(getClass());
if (cEntry && cEntry->powerType < MAX_POWERS && uint32(GetPowerType()) != cEntry->powerType)
setPowerType(Powers(cEntry->powerType));
SetPowerType(Powers(cEntry->powerType));
break;
}
}