From 8590eb8e96b43ea2d98a449d786701c63b819b99 Mon Sep 17 00:00:00 2001 From: kgd192 <15697480+kgd192@users.noreply.github.com> Date: Fri, 30 Aug 2024 22:47:50 +0200 Subject: [PATCH] Fix Velocity Slowdown during turn Slowdown mechanic now uses the angular velocity and not ticks, to prevent issue #1310 --- game/state/city/vehicle.cpp | 21 +++++---------------- game/state/city/vehicle.h | 3 +++ 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/game/state/city/vehicle.cpp b/game/state/city/vehicle.cpp index fa5c70e43..569f92000 100644 --- a/game/state/city/vehicle.cpp +++ b/game/state/city/vehicle.cpp @@ -1,5 +1,7 @@ #ifndef _USE_MATH_DEFINES #define _USE_MATH_DEFINES +#include "game/state/gametime.h" +#include #endif #include "game/state/city/vehicle.h" #include "framework/configfile.h" @@ -96,8 +98,8 @@ const UString &StateObject::getId(const GameState &state, const sp