Fixed some spaces

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-06-10 20:52:15 +02:00
parent 61bc0dce35
commit 4507e7dd66
+7 -7
View File
@@ -34,7 +34,7 @@ INSTANTIATE_SINGLETON_1(ConditionMgr);
// Checks if player meets the condition // Checks if player meets the condition
// Can have CONDITION_SOURCE_TYPE_NONE && !mReferenceId if called from a special event (ie: eventAI) // Can have CONDITION_SOURCE_TYPE_NONE && !mReferenceId if called from a special event (ie: eventAI)
bool Condition::Meets(Player * player, Unit* targetOverride) bool Condition::Meets(Player * player, Unit* targetOverride)
{ {
if (!player) if (!player)
{ {
sLog.outDebug("Condition player not found"); sLog.outDebug("Condition player not found");
@@ -126,7 +126,7 @@ bool Condition::Meets(Player * player, Unit* targetOverride)
break; break;
} }
case CONDITION_SPELL_SCRIPT_TARGET: case CONDITION_SPELL_SCRIPT_TARGET:
condMeets = true;//spell target condition is handled in spellsystem, here it is always true condMeets = true;//spell target condition is handled in spellsystem, here it is always true
refId = 0;//cant have references! use CONDITION_SOURCE_TYPE_SPELL for it refId = 0;//cant have references! use CONDITION_SOURCE_TYPE_SPELL for it
break; break;
case CONDITION_CREATURE_TARGET: case CONDITION_CREATURE_TARGET:
@@ -165,7 +165,7 @@ bool Condition::Meets(Player * player, Unit* targetOverride)
break; break;
case CONDITION_ITEM_TARGET: case CONDITION_ITEM_TARGET:
{ {
condMeets = true;//handled in Item::IsTargetValidForItemUse condMeets = true;//handled in Item::IsTargetValidForItemUse
refId = 0;//cant have references for now refId = 0;//cant have references for now
break; break;
} }
@@ -241,7 +241,7 @@ bool ConditionMgr::IsPlayerMeetToConditionList(Player* player,const ConditionLis
{ {
if (!(*i)->Meets(player, targetOverride)) if (!(*i)->Meets(player, targetOverride))
ElseGroupMap[(*i)->mElseGroup] = false; ElseGroupMap[(*i)->mElseGroup] = false;
} }
} }
} }
for (std::map<uint32, bool>::const_iterator i = ElseGroupMap.begin(); i != ElseGroupMap.end(); ++i) for (std::map<uint32, bool>::const_iterator i = ElseGroupMap.begin(); i != ElseGroupMap.end(); ++i)
@@ -351,7 +351,7 @@ void ConditionMgr::LoadConditions(bool isReload)
if (iConditionTypeOrReference < 0)//it has a reference if (iConditionTypeOrReference < 0)//it has a reference
{ {
if (iConditionTypeOrReference == iSourceTypeOrReferenceId)//self referencing, skipp if (iConditionTypeOrReference == iSourceTypeOrReferenceId)//self referencing, skip
{ {
sLog.outErrorDb("Condition reference %i is referencing self, skipped", iSourceTypeOrReferenceId); sLog.outErrorDb("Condition reference %i is referencing self, skipped", iSourceTypeOrReferenceId);
continue; continue;
@@ -529,7 +529,7 @@ bool ConditionMgr::addToGossipMenuItems(Condition* cond)
} }
} }
} }
sLog.outErrorDb("addToGossipMenuItems: GossipMenuIt %u Item %u not found", cond->mSourceGroup, cond->mSourceEntry); sLog.outErrorDb("addToGossipMenuItems: GossipMenuId %u Item %u not found", cond->mSourceGroup, cond->mSourceEntry);
return false; return false;
} }
@@ -776,7 +776,7 @@ bool ConditionMgr::isSourceTypeValid(Condition* cond)
return false; return false;
} }
break; break;
} }
case CONDITION_SOURCE_TYPE_CREATURE_TEMPLATE_VEHICLE: case CONDITION_SOURCE_TYPE_CREATURE_TEMPLATE_VEHICLE:
{ {
if (!sCreatureStorage.LookupEntry<CreatureInfo>(cond->mSourceEntry)) if (!sCreatureStorage.LookupEntry<CreatureInfo>(cond->mSourceEntry))