This commit is contained in:
aozhiwei 2024-02-19 17:54:13 +08:00
parent 82f50e1ae9
commit 13236a7746
2 changed files with 5 additions and 0 deletions

View File

@ -282,6 +282,7 @@ void Car::SyncPos()
for (auto hum : passengers_) {
if (hum != driver_) {
hum->SetPos(GetPos());
hum->CheckSpecObject(poly_ext_flags_);
hum->SetMoveDir(GetMoveDir());
room->grid_service->MoveCreature(hum);
}
@ -637,6 +638,7 @@ void Car::Update(int delta_time)
if (GetDriver()) {
App::Instance()->verify_set_pos = 1;
GetDriver()->SetPos(GetPos());
GetDriver()->CheckSpecObject(poly_ext_flags_);
App::Instance()->verify_set_pos = 0;
}
SyncPos();

View File

@ -344,6 +344,9 @@ void Player::UpdateMoving()
void Player::UpdateShot()
{
#ifdef MYDEBUG
a8::XPrintf("UpdateShot fly:%d", {HasBuffEffect(kBET_InWater) ? 1 : 0});
#endif
if (dead ||
downed ||
HasBuffEffect(kBET_Jump) ||