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

Disable HOVER Locomotor assert for ease of testing #821

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/game/logic/object/locomotor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down