1
This commit is contained in:
parent
f79bea9352
commit
29bb2084f7
@ -1038,7 +1038,7 @@ void Player::_CMMove(f8::MsgHdr* hdr, const cs::CMMove& msg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef MYDEBUG1
|
#ifdef MYDEBUG
|
||||||
a8::XPrintf("attack_dir:%f,%f,%f cli_dir:%f,%f,%f\n",
|
a8::XPrintf("attack_dir:%f,%f,%f cli_dir:%f,%f,%f\n",
|
||||||
{
|
{
|
||||||
GetAttackDir().x,
|
GetAttackDir().x,
|
||||||
@ -1060,9 +1060,13 @@ void Player::_CMMove(f8::MsgHdr* hdr, const cs::CMMove& msg)
|
|||||||
a8::XPrintf("moving:%d times:%d\n", {moving ? 1 : 0, GetDisableAttackDirTimes()});
|
a8::XPrintf("moving:%d times:%d\n", {moving ? 1 : 0, GetDisableAttackDirTimes()});
|
||||||
#endif
|
#endif
|
||||||
if (moving && GetDisableAttackDirTimes() <= 0) {
|
if (moving && GetDisableAttackDirTimes() <= 0) {
|
||||||
|
#if 1
|
||||||
|
SetAttackDir(GetMoveDir());
|
||||||
|
#else
|
||||||
if (!HasBuffEffect(kBET_HoldShield)) {
|
if (!HasBuffEffect(kBET_HoldShield)) {
|
||||||
SetAttackDir(GetMoveDir());
|
SetAttackDir(GetMoveDir());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (GetCar() && GetCar()->IsDriver(this)) {
|
if (GetCar() && GetCar()->IsDriver(this)) {
|
||||||
if (!GetCar()->HasBuffEffect(kBET_Sprint)) {
|
if (!GetCar()->HasBuffEffect(kBET_Sprint)) {
|
||||||
GetCar()->SetAttackDir(GetAttackDir());
|
GetCar()->SetAttackDir(GetAttackDir());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user