Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Проблемы с транспортом на последних версиях MSVC #325

Closed
xrSimpodin opened this issue May 6, 2021 · 1 comment

Comments

@xrSimpodin
Copy link
Member

Проблемы появились примерно в это время 2.1.152...2.1.161 после очередного обновления компилятора.
Если собирать на 141, проблем тоже нет.
Суть в том, что сюжетные машинки по путям не едут. Надо разобраться в чём тут дело.
Можно проверить на этом сейве в огср моде:
ds_mercs_doc_is_hostage.zip

@xrSimpodin
Copy link
Member Author

Решили проблему заменой в двух местах в ph_car.script:

local curVel = self.car:CurrentVel():magnitude()

на

local Vel = self.car:CurrentVel()
local curVel = math.sqrt(Vel.x * Vel.x + Vel.y * Vel.y)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant