More warning fixes
This commit is contained in:
1 parent
cbbfb52ca7
commit
9710c41a40
19 files changed
+119
-96
No files matched your search
@@ -16178,7 +16178,7 @@ uint32 Unit::GetCombatRatingDamageReduction(CombatRating cr, float rate, float c
|
||||
|
||||
uint32 Unit::GetModelForForm(ShapeshiftForm form)
|
||||
{
|
||||
switch(form)
|
||||
switch (form)
|
||||
{
|
||||
case FORM_CAT:
|
||||
// Based on Hair color
|
||||
@@ -16347,39 +16347,39 @@ uint32 Unit::GetModelForForm(ShapeshiftForm form)
|
||||
return 21243;
|
||||
return 21244;
|
||||
default:
|
||||
{
|
||||
uint32 modelid = 0;
|
||||
SpellShapeshiftEntry const* formEntry = sSpellShapeshiftStore.LookupEntry(form);
|
||||
if (formEntry && formEntry->modelID_A)
|
||||
{
|
||||
// Take the alliance modelid as default
|
||||
if (GetTypeId() != TYPEID_PLAYER)
|
||||
return formEntry->modelID_A;
|
||||
else
|
||||
{
|
||||
if (Player::TeamForRace(getRace()) == ALLIANCE)
|
||||
modelid = formEntry->modelID_A;
|
||||
else
|
||||
modelid = formEntry->modelID_H;
|
||||
break;
|
||||
}
|
||||
|
||||
// If the player is horde but there are no values for the horde modelid - take the alliance modelid
|
||||
if (!modelid && Player::TeamForRace(getRace()) == HORDE)
|
||||
modelid = formEntry->modelID_A;
|
||||
}
|
||||
}
|
||||
return modelid;
|
||||
uint32 modelid = 0;
|
||||
SpellShapeshiftEntry const* formEntry = sSpellShapeshiftStore.LookupEntry(form);
|
||||
if (formEntry && formEntry->modelID_A)
|
||||
{
|
||||
// Take the alliance modelid as default
|
||||
if (GetTypeId() != TYPEID_PLAYER)
|
||||
return formEntry->modelID_A;
|
||||
else
|
||||
{
|
||||
if (Player::TeamForRace(getRace()) == ALLIANCE)
|
||||
modelid = formEntry->modelID_A;
|
||||
else
|
||||
modelid = formEntry->modelID_H;
|
||||
|
||||
// If the player is horde but there are no values for the horde modelid - take the alliance modelid
|
||||
if (!modelid && Player::TeamForRace(getRace()) == HORDE)
|
||||
modelid = formEntry->modelID_A;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
||||
return modelid;
|
||||
}
|
||||
|
||||
uint32 Unit::GetModelForTotem(PlayerTotemType totemType)
|
||||
{
|
||||
switch(getRace())
|
||||
switch (getRace())
|
||||
{
|
||||
case RACE_ORC:
|
||||
{
|
||||
switch(totemType)
|
||||
switch (totemType)
|
||||
{
|
||||
case SUMMON_TYPE_TOTEM_FIRE: //fire
|
||||
return 30758;
|
||||
@@ -16394,7 +16394,7 @@ uint32 Unit::GetModelForTotem(PlayerTotemType totemType)
|
||||
}
|
||||
case RACE_DWARF:
|
||||
{
|
||||
switch(totemType)
|
||||
switch (totemType)
|
||||
{
|
||||
case SUMMON_TYPE_TOTEM_FIRE: //fire
|
||||
return 30754;
|
||||
@@ -16409,7 +16409,7 @@ uint32 Unit::GetModelForTotem(PlayerTotemType totemType)
|
||||
}
|
||||
case RACE_TROLL:
|
||||
{
|
||||
switch(totemType)
|
||||
switch (totemType)
|
||||
{
|
||||
case SUMMON_TYPE_TOTEM_FIRE: //fire
|
||||
return 30762;
|
||||
@@ -16424,7 +16424,7 @@ uint32 Unit::GetModelForTotem(PlayerTotemType totemType)
|
||||
}
|
||||
case RACE_TAUREN:
|
||||
{
|
||||
switch(totemType)
|
||||
switch (totemType)
|
||||
{
|
||||
case SUMMON_TYPE_TOTEM_FIRE: //fire
|
||||
return 4589;
|
||||
@@ -16439,7 +16439,7 @@ uint32 Unit::GetModelForTotem(PlayerTotemType totemType)
|
||||
}
|
||||
case RACE_DRAENEI:
|
||||
{
|
||||
switch(totemType)
|
||||
switch (totemType)
|
||||
{
|
||||
case SUMMON_TYPE_TOTEM_FIRE: //fire
|
||||
return 19074;
|
||||
|
||||
Reference in new issue
Block a user