Core: Fix many "errors"/warnings and coding style (2)
Scripts; also reverted a change to AuthSocket Errors were found using Cppcheck, open-source static analysis tool
This commit is contained in:
1 parent
5f1977cb1d
commit
abbb896cfb
16 files changed
+70
-93
No files matched your search
@@ -537,7 +537,6 @@ public:
|
||||
if (!Fandral || !Arygos || !Caelestrasz || !Merithra)
|
||||
return;
|
||||
|
||||
Unit* mob = NULL;
|
||||
AnimationTimer = EventAnim[AnimationCount].Timer;
|
||||
if (eventEnd == false)
|
||||
{
|
||||
@@ -720,6 +719,7 @@ public:
|
||||
case 51:
|
||||
{
|
||||
uint32 entries[4] = { 15423, 15424, 15414, 15422 };
|
||||
Unit* mob = NULL;
|
||||
for (uint8 i = 0; i < 4; ++i)
|
||||
{
|
||||
mob = player->FindNearestCreature(entries[i], 50, me);
|
||||
@@ -844,9 +844,6 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
Unit* target = NULL;
|
||||
//Player* player = me->GetPlayer(PlayerGUID);
|
||||
|
||||
if (!Timers)
|
||||
{
|
||||
if (me->GetEntry() == 15424 || me->GetEntry() == 15422 || me->GetEntry() == 15414) //all but Kaldorei Soldiers
|
||||
@@ -890,6 +887,7 @@ public:
|
||||
}
|
||||
if (!hasTarget)
|
||||
{
|
||||
Unit* target = NULL;
|
||||
if (me->GetEntry() == 15424 || me->GetEntry() == 15422 || me->GetEntry() == 15414)
|
||||
target = me->FindNearestCreature(15423, 20, true);
|
||||
if (me->GetEntry() == 15423)
|
||||
|
||||
Reference in new issue
Block a user