Core/AI: English correction thanks u2blah for pointing

This commit is contained in:
Fredi Machado
2011-08-21 00:07:38 -03:00
parent 78e10e9cd0
commit 73b1448f29
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -710,9 +710,9 @@ void SmartAI::SetFly(bool fly)
me->SetFlying(fly);
}
void SmartAI::SetSwimm(bool swimm)
void SmartAI::SetSwim(bool swim)
{
if (swimm)
if (swim)
me->AddUnitMovementFlag(MOVEMENTFLAG_SWIMMING);
else
me->RemoveUnitMovementFlag(MOVEMENTFLAG_SWIMMING);
+1 -1
View File
@@ -173,7 +173,7 @@ class SmartAI : public CreatureAI
void SetFly(bool fly = true);
void SetSwimm(bool swimm = true);
void SetSwim(bool swim = true);
void sGossipHello(Player* player);
void sGossipSelect(Player* player, uint32 sender, uint32 action);
@@ -1212,12 +1212,12 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
CAST_AI(SmartAI, me->AI())->SetRun(e.action.setRun.run ? true : false);
break;
}
case SMART_ACTION_SET_SWIMM:
case SMART_ACTION_SET_SWIM:
{
if (!IsSmart())
return;
CAST_AI(SmartAI, me->AI())->SetSwimm(e.action.setSwimm.swimm ? true : false);
CAST_AI(SmartAI, me->AI())->SetSwim(e.action.setSwim.swim ? true : false);
break;
}
case SMART_ACTION_WP_START:
@@ -739,7 +739,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
case SMART_ACTION_WP_PAUSE:
case SMART_ACTION_SET_FLY:
case SMART_ACTION_SET_RUN:
case SMART_ACTION_SET_SWIMM:
case SMART_ACTION_SET_SWIM:
case SMART_ACTION_FORCE_DESPAWN:
case SMART_ACTION_SET_INGAME_PHASE_MASK:
case SMART_ACTION_SET_UNIT_FLAG:
@@ -420,7 +420,7 @@ enum SMART_ACTION
SMART_ACTION_INSTALL_AI_TEMPLATE = 58, // AITemplateID
SMART_ACTION_SET_RUN = 59, // 0/1
SMART_ACTION_SET_FLY = 60, // 0/1
SMART_ACTION_SET_SWIMM = 61, // 0/1
SMART_ACTION_SET_SWIM = 61, // 0/1
SMART_ACTION_TELEPORT = 62, // mapID,
SMART_ACTION_STORE_VARIABLE_DECIMAL = 63, // varID, number
SMART_ACTION_STORE_TARGET_LIST = 64, // varID,
@@ -754,8 +754,8 @@ struct SmartAction
struct
{
uint32 swimm;
} setSwimm;
uint32 swim;
} setSwim;
struct
{