* fix "warning C4305: 'initializing' : truncation from 'double' to 'float'" warnings
* fix some other warnings here and there

--HG--
branch : trunk
This commit is contained in:
azazel
2010-08-22 23:46:40 +06:00
parent d38135d1fd
commit 399e35f8f5
189 changed files with 2842 additions and 2817 deletions
@@ -70,12 +70,12 @@ EndScriptData */
/** Locations **/
float KaelLocations[3][2]=
{
{148.744659, 181.377426},
{140.823883, 195.403046},
{156.574188, 195.650482},
{148.744659f, 181.377426f},
{140.823883f, 195.403046f},
{156.574188f, 195.650482f},
};
#define LOCATION_Z -16.727455
#define LOCATION_Z -16.727455f
class boss_felblood_kaelthas : public CreatureScript
{
@@ -175,7 +175,7 @@ public:
void MoveInLineOfSight(Unit *who)
{
if (!HasTaunted && me->IsWithinDistInMap(who, 40.0))
if (!HasTaunted && me->IsWithinDistInMap(who, 40.0f))
{
DoScriptText(SAY_AGGRO, me);
HasTaunted = true;
@@ -334,7 +334,7 @@ public:
} else FlameStrikeTimer -= diff;
// Below 50%
if (me->GetMaxHealth() * 0.5 > me->GetHealth())
if (me->GetMaxHealth() * 0.5f > me->GetHealth())
{
me->ApplySpellImmune(0, IMMUNITY_EFFECT, SPELL_EFFECT_INTERRUPT_CAST, true);
me->StopMoving();
@@ -64,15 +64,15 @@ enum eEnums
MAX_ACTIVE_LACKEY = 4
};
const float fOrientation = 4.98;
const float fZLocation = -19.921;
const float fOrientation = 4.98f;
const float fZLocation = -19.921f;
float LackeyLocations[4][2]=
{
{123.77, 17.6007},
{131.731, 15.0827},
{121.563, 15.6213},
{129.988, 17.2355},
{123.77f, 17.6007f},
{131.731f, 15.0827f},
{121.563f, 15.6213f},
{129.988f, 17.2355f},
};
const uint32 m_auiAddEntries[] =
@@ -41,7 +41,7 @@ enum eEnums
POINT_ID_LAND = 1
};
const float afKaelLandPoint[] = {225.045, -276.236, -5.434};
const float afKaelLandPoint[] = {225.045f, -276.236f, -5.434f};
#define GOSSIP_ITEM_KAEL_1 "Who are you?"
#define GOSSIP_ITEM_KAEL_2 "What can we do to assist you?"