From 0501f4e9d0f0d014f7c06d18e16f80b934860535 Mon Sep 17 00:00:00 2001 From: xezon <4720891+xezon@users.noreply.github.com> Date: Tue, 17 Jan 2023 21:41:00 +0100 Subject: [PATCH] Disable HOVER Locomotor assert for ease of testing --- src/game/logic/object/locomotor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/game/logic/object/locomotor.cpp b/src/game/logic/object/locomotor.cpp index 897a1e0d3..a111f6d5a 100644 --- a/src/game/logic/object/locomotor.cpp +++ b/src/game/logic/object/locomotor.cpp @@ -1991,8 +1991,10 @@ void Locomotor::Maintain_Current_Position_Hover(Object *obj, PhysicsBehavior *ph physics->Set_Turning(TURN_NONE); if (physics->Is_Motive()) { - captainslog_dbgassert( - m_template->m_minSpeed == 0.0f, "HOVER should always have zero minSpeeds (otherwise, they WING)"); + // #TODO xezon: Assert commented for the time being because retail game data triggers assert via + // Locomotor InchForwardLocomotor, which is used by the Object FireWallSegment of China's Dragon Tank. + // captainslog_dbgassert( + // m_template->m_minSpeed == 0.0f, "HOVER should always have zero minSpeeds (otherwise, they WING)"); float max_accel = Get_Max_Acceleration(obj->Get_Body_Module()->Get_Damage_State()); float cur_speed = physics->Get_Forward_Speed_2D(); float min_speed = std::max(0.0000000001f, m_template->m_minSpeed);