Core: Fix more warnings

--HG--
branch : trunk
This commit is contained in:
Spp
2010-08-30 23:07:14 +02:00
parent a6d075dfc6
commit e252b8abe7
54 changed files with 111 additions and 111 deletions
@@ -223,8 +223,8 @@ class boss_akilzon : public CreatureScript
z = me->GetPositionZ();
for (uint8 i = 0; i < 5+rand()%5; ++i)
{
x = 343+rand()%60;
y = 1380+rand()%60;
x = 343.0f+rand()%60;
y = 1380.0f+rand()%60;
if (Unit *trigger = me->SummonTrigger(x, y, z, 0, 2000))
{
trigger->setFaction(35);
@@ -368,7 +368,7 @@ class boss_akilzon : public CreatureScript
y = pTarget->GetPositionY() + irand(-10,10);
z = pTarget->GetPositionZ() + urand(16,20);
if (z > 95)
z = 95 - urand(0,5);
z = 95.0f - urand(0,5);
}
Creature *pCreature = me->SummonCreature(MOB_SOARING_EAGLE, x, y, z, 0, TEMPSUMMON_CORPSE_DESPAWN, 0);
if (pCreature)
@@ -407,7 +407,7 @@ class mob_akilzon_eagle : public CreatureScript
uint32 EagleSwoop_Timer;
bool arrived;
uint32 TargetGUID;
uint64 TargetGUID;
void Reset()
{
@@ -452,7 +452,7 @@ class mob_akilzon_eagle : public CreatureScript
y = pTarget->GetPositionY() + irand(-10,10);
z = pTarget->GetPositionZ() + urand(10,15);
if (z > 95)
z = 95 - urand(0,5);
z = 95.0f - urand(0,5);
}
else
{
@@ -223,8 +223,8 @@ class boss_janalai : public CreatureScript
float dx, dy;
for (int i(0); i < 40; ++i)
{
dx = irand(-area_dx/2, area_dx/2);
dy = irand(-area_dy/2, area_dy/2);
dx = float(irand(-area_dx/2, area_dx/2));
dy = float(irand(-area_dy/2, area_dy/2));
Creature* bomb = DoSpawnCreature(MOB_FIRE_BOMB, dx, dy, 0, 0, TEMPSUMMON_TIMED_DESPAWN, 15000);
if (bomb) FireBombGUIDs[i] = bomb->GetGUID();
@@ -638,9 +638,9 @@ class mob_janalai_hatchling : public CreatureScript
{
BuffetTimer = 7000;
if (me->GetPositionY() > 1150)
me->GetMotionMaster()->MovePoint(0, hatcherway[0][3][0]+rand()%4-2,1150+rand()%4-2,hatcherway[0][3][2]);
me->GetMotionMaster()->MovePoint(0, hatcherway[0][3][0]+rand()%4-2,1150.0f+rand()%4-2,hatcherway[0][3][2]);
else
me->GetMotionMaster()->MovePoint(0,hatcherway[1][3][0]+rand()%4-2,1150+rand()%4-2,hatcherway[1][3][2]);
me->GetMotionMaster()->MovePoint(0, hatcherway[1][3][0]+rand()%4-2,1150.0f+rand()%4-2,hatcherway[1][3][2]);
me->SetUnitMovementFlags(MOVEMENTFLAG_LEVITATING);
}