This commit is contained in:
aozhiwei 2023-04-02 21:12:43 +08:00
parent 05458b19da
commit 3b5a69bcff

View File

@ -87,7 +87,7 @@ void Movement::CalcTargetPos(float distance)
} }
} else { } else {
unsigned short exclude_flags = 0; unsigned short exclude_flags = 0;
if (owner_->GetCar()) { if (owner_->HasBuffEffect(kBET_Driver)) {
exclude_flags = SAMPLE_POLYFLAGS_DOOR; exclude_flags = SAMPLE_POLYFLAGS_DOOR;
} }
glm::vec3 hit_point; glm::vec3 hit_point;