diff options
| author | Spp <none@none> | 2010-04-07 23:56:35 +0200 |
|---|---|---|
| committer | Spp <none@none> | 2010-04-07 23:56:35 +0200 |
| commit | 46f0674e237dd8fe97ba4f0769e18b4adfce841b (patch) | |
| tree | 4556d27751077c2ed37a445493ed93a4d08e981b /src/scripts/eastern_kingdoms | |
| parent | 2454c290b84e04bd0321ca94e0be8c8dc7eedbe8 (diff) | |
Code Style (game + scripts only):
">=" --> " >= " (when needed)
" >=" --> " >="
">= " --> ">= "
"<=" --> " <= " (when needed)
" <=" --> " <="
"<= " --> "<= "
" ==" --> " =="
"== " --> "== "
--HG--
branch : trunk
Diffstat (limited to 'src/scripts/eastern_kingdoms')
| -rw-r--r-- | src/scripts/eastern_kingdoms/karazhan/boss_midnight.cpp | 2 | ||||
| -rw-r--r-- | src/scripts/eastern_kingdoms/karazhan/boss_netherspite.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/eastern_kingdoms/karazhan/boss_midnight.cpp b/src/scripts/eastern_kingdoms/karazhan/boss_midnight.cpp index a5b8f55b705..4acbe9eaae2 100644 --- a/src/scripts/eastern_kingdoms/karazhan/boss_midnight.cpp +++ b/src/scripts/eastern_kingdoms/karazhan/boss_midnight.cpp @@ -94,7 +94,7 @@ struct boss_midnightAI : public ScriptedAI if (Unit *pAttumen = Unit::GetUnit(*m_creature, Attumen)) Mount(pAttumen); } - else if (Phase == 3) + else if (Phase == 3) { if (Mount_Timer) { diff --git a/src/scripts/eastern_kingdoms/karazhan/boss_netherspite.cpp b/src/scripts/eastern_kingdoms/karazhan/boss_netherspite.cpp index 41a9f2325e1..6420c4d34d2 100644 --- a/src/scripts/eastern_kingdoms/karazhan/boss_netherspite.cpp +++ b/src/scripts/eastern_kingdoms/karazhan/boss_netherspite.cpp @@ -104,7 +104,7 @@ struct boss_netherspiteAI : public ScriptedAI yh = pTarget->GetPositionY(); // check if target is between (not checking distance from the beam yet) - if (dist(xn,yn,xh,yh)>=dist(xn,yn,xp,yp) || dist(xp,yp,xh,yh)>=dist(xn,yn,xp,yp)) + if (dist(xn,yn,xh,yh) >= dist(xn,yn,xp,yp) || dist(xp,yp,xh,yh) >= dist(xn,yn,xp,yp)) return false; // check distance from the beam return (abs((xn-xp)*yh+(yp-yn)*xh-xn*yp+xp*yn)/dist(xn,yn,xp,yp) < 1.5f); |
