This commit is contained in:
aozhiwei 2024-02-26 11:10:32 +08:00
parent 13236a7746
commit 160fd1a9ba
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -1412,6 +1412,7 @@ bool MapInstance::IsValidPos(const glm::vec3& point)
unsigned short MapInstance::GetLastRaycastPolyFlags()
{
return 0;
unsigned short flags = 0;
if (last_raycast_poly_ref_ != INVALID_NAVMESH_POLYREF) {
auto status = navmesh_->getPolyFlags(last_raycast_poly_ref_, &flags);