mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Merge pull request #5870 from Elron103/pull-requests5
Core: Fix warnings
This commit is contained in:
@@ -927,7 +927,7 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
|
||||
SetCreateHealth(40*petlevel);
|
||||
SetCreateMana(28 + 10*petlevel);
|
||||
}
|
||||
SetBonusDamage(m_owner->SpellBaseDamageBonus(SPELL_SCHOOL_MASK_FIRE) * 0.5f);
|
||||
SetBonusDamage(int32(m_owner->SpellBaseDamageBonus(SPELL_SCHOOL_MASK_FIRE) * 0.5f));
|
||||
SetBaseWeaponDamage(BASE_ATTACK, MINDAMAGE, float(petlevel * 4 - petlevel));
|
||||
SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float(petlevel * 4 + petlevel));
|
||||
break;
|
||||
|
||||
@@ -18551,7 +18551,7 @@ void Player::SaveToDB(bool create /*=false*/)
|
||||
outDebugValues();
|
||||
|
||||
PreparedStatement* stmt = NULL;
|
||||
uint16 index = 0;
|
||||
uint8 index = 0;
|
||||
|
||||
if (create)
|
||||
{
|
||||
@@ -18590,12 +18590,12 @@ void Player::SaveToDB(bool create /*=false*/)
|
||||
//save, far from tavern/city
|
||||
//save, but in tavern/city
|
||||
stmt->setUInt32(index++, m_resetTalentsCost);
|
||||
stmt->setUInt32(index++, m_resetTalentsTime);
|
||||
stmt->setUInt32(index++, uint32(m_resetTalentsTime));
|
||||
stmt->setUInt16(index++, (uint16)m_ExtraFlags);
|
||||
stmt->setUInt8(index++, m_stableSlots);
|
||||
stmt->setUInt16(index++, (uint16)m_atLoginFlags);
|
||||
stmt->setUInt16(index++, GetZoneId());
|
||||
stmt->setUInt32(index++, m_deathExpireTime);
|
||||
stmt->setUInt32(index++, uint32(m_deathExpireTime));
|
||||
|
||||
ss.str("");
|
||||
ss << m_taxi.SaveTaxiDestinationsToString();
|
||||
@@ -18701,12 +18701,12 @@ void Player::SaveToDB(bool create /*=false*/)
|
||||
//save, far from tavern/city
|
||||
//save, but in tavern/city
|
||||
stmt->setUInt32(index++, m_resetTalentsCost);
|
||||
stmt->setUInt32(index++, m_resetTalentsTime);
|
||||
stmt->setUInt32(index++, uint32(m_resetTalentsTime));
|
||||
stmt->setUInt16(index++, (uint16)m_ExtraFlags);
|
||||
stmt->setUInt8(index++, m_stableSlots);
|
||||
stmt->setUInt16(index++, (uint16)m_atLoginFlags);
|
||||
stmt->setUInt16(index++, GetZoneId());
|
||||
stmt->setUInt32(index++, m_deathExpireTime);
|
||||
stmt->setUInt32(index++, uint32(m_deathExpireTime));
|
||||
|
||||
ss.str("");
|
||||
ss << m_taxi.SaveTaxiDestinationsToString();
|
||||
|
||||
@@ -580,7 +580,7 @@ void InstanceSaveManager::_ResetOrWarnAll(uint32 mapid, Difficulty difficulty, b
|
||||
if (period < DAY)
|
||||
period = DAY;
|
||||
|
||||
uint32 next_reset = ((resetTime + MINUTE) / DAY * DAY) + period + diff;
|
||||
uint32 next_reset = uint32(((resetTime + MINUTE) / DAY * DAY) + period + diff);
|
||||
|
||||
SetResetTimeFor(mapid, difficulty, next_reset);
|
||||
ScheduleReset(true, time_t(next_reset-3600), InstResetEvent(1, mapid, difficulty, 0));
|
||||
|
||||
@@ -774,7 +774,7 @@ class npc_simon_bunny : public CreatureScript
|
||||
colorSequence.clear();
|
||||
playableSequence.clear();
|
||||
playerSequence.clear();
|
||||
me->SetFloatValue(OBJECT_FIELD_SCALE_X, large ? 2 : 1);
|
||||
me->SetFloatValue(OBJECT_FIELD_SCALE_X, large ? 2.0f : 1.0f);
|
||||
|
||||
std::list<WorldObject*> ClusterList;
|
||||
Trinity::AllWorldObjectsInRange objects(me, searchDistance);
|
||||
|
||||
Reference in New Issue
Block a user