1
This commit is contained in:
parent
baf75f0f91
commit
cb9d71cb3f
@ -258,7 +258,6 @@ void Car::SyncPos()
|
|||||||
if (driver_) {
|
if (driver_) {
|
||||||
Global::Instance()->verify_set_pos = 1;
|
Global::Instance()->verify_set_pos = 1;
|
||||||
SetPos(driver_->GetPos());
|
SetPos(driver_->GetPos());
|
||||||
Global::Instance()->verify_set_pos = 0;
|
|
||||||
SetMoveDir(driver_->GetMoveDir());
|
SetMoveDir(driver_->GetMoveDir());
|
||||||
for (auto hum : passengers_) {
|
for (auto hum : passengers_) {
|
||||||
if (hum != driver_) {
|
if (hum != driver_) {
|
||||||
@ -267,6 +266,7 @@ void Car::SyncPos()
|
|||||||
room->grid_service->MoveCreature(hum);
|
room->grid_service->MoveCreature(hum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Global::Instance()->verify_set_pos = 0;
|
||||||
room->grid_service->MoveCreature(this);
|
room->grid_service->MoveCreature(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user