Core: Remove "enumeration value 'xxx' not handled in switch" warnings

--HG--
branch : trunk
This commit is contained in:
Spp
2010-08-21 20:55:31 +02:00
parent 77bd968c63
commit e7856a831c
11 changed files with 68 additions and 5 deletions
+15 -1
View File
@@ -2229,6 +2229,8 @@ void Player::Regenerate(Powers power)
case POWER_HAPPINESS:
case POWER_HEALTH:
break;
default:
break;
}
// Mana regen calculated in Player::UpdateManaRegen()
@@ -5499,6 +5501,8 @@ void Player::ApplyRatingMod(CombatRating cr, int32 value, bool apply)
ApplyCastTimePercentMod(RatingChange,apply);
break;
}
default:
break;
}
UpdateRating(cr);
@@ -5831,6 +5835,8 @@ void Player::UpdateWeaponSkill (WeaponAttackType attType)
UpdateSkill(tmpitem->GetSkill(), weapon_skill_gain);
break;
}
default:
break;
}
UpdateAllCritPercentages();
}
@@ -7187,6 +7193,8 @@ void Player::DuelComplete(DuelCompleteType type)
duel->opponent->CastSpell(duel->opponent, 52994, true);
}
break;
default:
break;
}
//Remove Duel Flag object
@@ -8305,6 +8313,8 @@ void Player::SendLoot(uint64 guid, LootType loot_type)
case MASTER_LOOT:
group->MasterLoot(loot, go);
break;
default:
break;
}
}
}
@@ -18118,7 +18128,9 @@ void Player::_SaveSkills(SQLTransaction& trans)
trans->PAppend("UPDATE character_skills SET value = '%u',max = '%u'WHERE guid = '%u' AND skill = '%u' ",
value, max, GetGUIDLow(), itr->first);
break;
};
default:
break;
}
itr->second.uState = SKILL_UNCHANGED;
++itr;
@@ -20976,6 +20988,8 @@ void Player::SendTransferAborted(uint32 mapid, TransferAbortReason reason, uint8
// these are the ONLY cases that have an extra argument in the packet!!!
data << uint8(arg);
break;
default:
break;
}
GetSession()->SendPacket(&data);
}