This commit is contained in:
aozhiwei 2023-04-07 19:50:26 +08:00
parent baf75f0f91
commit cb9d71cb3f

View File

@ -258,7 +258,6 @@ void Car::SyncPos()
if (driver_) {
Global::Instance()->verify_set_pos = 1;
SetPos(driver_->GetPos());
Global::Instance()->verify_set_pos = 0;
SetMoveDir(driver_->GetMoveDir());
for (auto hum : passengers_) {
if (hum != driver_) {
@ -267,6 +266,7 @@ void Car::SyncPos()
room->grid_service->MoveCreature(hum);
}
}
Global::Instance()->verify_set_pos = 0;
room->grid_service->MoveCreature(this);
}
}