mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
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:
parent
bb2f41482c
commit
9e94234bdf
12 changed files with 124 additions and 18 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue