1
This commit is contained in:
parent
13236a7746
commit
160fd1a9ba
@ -282,7 +282,7 @@ void Car::SyncPos()
|
|||||||
for (auto hum : passengers_) {
|
for (auto hum : passengers_) {
|
||||||
if (hum != driver_) {
|
if (hum != driver_) {
|
||||||
hum->SetPos(GetPos());
|
hum->SetPos(GetPos());
|
||||||
hum->CheckSpecObject(poly_ext_flags_);
|
//hum->CheckSpecObject(poly_ext_flags_);
|
||||||
hum->SetMoveDir(GetMoveDir());
|
hum->SetMoveDir(GetMoveDir());
|
||||||
room->grid_service->MoveCreature(hum);
|
room->grid_service->MoveCreature(hum);
|
||||||
}
|
}
|
||||||
@ -638,7 +638,7 @@ void Car::Update(int delta_time)
|
|||||||
if (GetDriver()) {
|
if (GetDriver()) {
|
||||||
App::Instance()->verify_set_pos = 1;
|
App::Instance()->verify_set_pos = 1;
|
||||||
GetDriver()->SetPos(GetPos());
|
GetDriver()->SetPos(GetPos());
|
||||||
GetDriver()->CheckSpecObject(poly_ext_flags_);
|
//GetDriver()->CheckSpecObject(poly_ext_flags_);
|
||||||
App::Instance()->verify_set_pos = 0;
|
App::Instance()->verify_set_pos = 0;
|
||||||
}
|
}
|
||||||
SyncPos();
|
SyncPos();
|
||||||
|
@ -1412,6 +1412,7 @@ bool MapInstance::IsValidPos(const glm::vec3& point)
|
|||||||
|
|
||||||
unsigned short MapInstance::GetLastRaycastPolyFlags()
|
unsigned short MapInstance::GetLastRaycastPolyFlags()
|
||||||
{
|
{
|
||||||
|
return 0;
|
||||||
unsigned short flags = 0;
|
unsigned short flags = 0;
|
||||||
if (last_raycast_poly_ref_ != INVALID_NAVMESH_POLYREF) {
|
if (last_raycast_poly_ref_ != INVALID_NAVMESH_POLYREF) {
|
||||||
auto status = navmesh_->getPolyFlags(last_raycast_poly_ref_, &flags);
|
auto status = navmesh_->getPolyFlags(last_raycast_poly_ref_, &flags);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user