1
This commit is contained in:
parent
03527680b0
commit
ac2ad809a4
@ -11,7 +11,6 @@
|
||||
void BeatBackBuff::Activate()
|
||||
{
|
||||
if (caster_.Get()) {
|
||||
#if 1
|
||||
if (std::abs(caster_.Get()->GetAttackDir().x) > FLT_EPSILON ||
|
||||
std::abs(caster_.Get()->GetAttackDir().y) > FLT_EPSILON) {
|
||||
float distance = meta->GetBuffParam1(this);
|
||||
@ -22,17 +21,6 @@ void BeatBackBuff::Activate()
|
||||
owner->SetMoveDir(old_move_dir);
|
||||
}
|
||||
}
|
||||
#else
|
||||
if (std::abs(caster_.Get()->context_dir.x) > FLT_EPSILON ||
|
||||
std::abs(caster_.Get()->context_dir.x) > FLT_EPSILON) {
|
||||
if (std::abs(meta->_int_buff_param1) > 0) {
|
||||
glm::vec3 old_move_dir = owner->GetMoveDir();
|
||||
owner->SetMoveDir(caster_.Get()->context_dir);
|
||||
owner->ForwardMove(meta->_buff_param1);
|
||||
owner->SetMoveDir(old_move_dir);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user