*Some cleanup (mostly whitespace changes)

--HG--
branch : trunk
This commit is contained in:
maximius
2009-11-20 19:11:28 -08:00
parent 5b54c76ac3
commit 654519d1a6
61 changed files with 1023 additions and 1057 deletions
+2 -2
View File
@@ -792,7 +792,7 @@ namespace Trinity
if(!u->isAlive())
return false;
if(u->GetTypeId()==TYPEID_UNIT && ((Creature*)u)->isTotem())
if(u->GetTypeId() == TYPEID_UNIT && ((Creature*)u)->isTotem())
return false;
return i_obj->IsWithinDistInMap(u, i_range) && !i_funit->IsFriendlyTo(u);
@@ -910,7 +910,7 @@ namespace Trinity
// Check contains checks for: live, non-selectable, non-attackable flags, flight check and GM check, ignore totems
if (!u->isTargetableForAttack())
return false;
if(u->GetTypeId()==TYPEID_UNIT && ((Creature*)u)->isTotem())
if(u->GetTypeId() == TYPEID_UNIT && ((Creature*)u)->isTotem())
return false;
if(( i_targetForPlayer ? !i_funit->IsFriendlyTo(u) : i_funit->IsHostileTo(u) )&& i_obj->IsWithinDistInMap(u, i_range))