Skip to content

Commit

Permalink
stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Rynchodon committed Mar 17, 2017
1 parent de7f092 commit 3f26ba4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Scripts/Autopilot/Aerodynamics/AeroProfiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,11 @@ public void DrawPressureVelocity()
Vector3 velocity = Vector3.Multiply(currentData.CurVelocity, lineLength / speed);
Vector3D direction = Vector3D.Transform(velocity, ref rotationMatrix);
Vector3D worldEnd; Vector3D.Add(ref worldPosition, ref direction, out worldEnd);
#if UNSTABLE
MySimpleObjectDraw.DrawLine(worldPosition, worldEnd, Globals.WeaponLaser, ref speedColourVector, 0.05f);
#else
MySimpleObjectDraw.DrawLine(worldPosition, worldEnd, "WeaponLaser", ref speedColourVector, 0.05f);
#endif

//m_logger.debugLog("Cell: " + (index + m_minCell) + ", " + currentData + ", sphere: " + airPressColour + ", line: " + speedColour);
}
Expand Down
8 changes: 8 additions & 0 deletions Scripts/Weapons/WeaponTargeting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,11 @@ public void Update_Targeting()
if (target.FiringDirection.HasValue && !FireWeapon)
{
Vector4 yellow = Color.Yellow.ToVector4();
#if UNSTABLE
MySimpleObjectDraw.DrawLine(start + target.FiringDirection.Value, start + target.FiringDirection.Value * 11f, Globals.WeaponLaser, ref yellow, 0.05f);
#else
MySimpleObjectDraw.DrawLine(start + target.FiringDirection.Value, start + target.FiringDirection.Value * 11f, "WeaponLaser", ref yellow, 0.05f);
#endif
}
distance = (float)Vector3D.Distance(start, target.GetPosition());
}
Expand All @@ -737,7 +741,11 @@ public void Update_Targeting()
Vector3D contact = Vector3D.Zero;
if (MyHudCrosshair.GetTarget(start + facing * 10f, end, ref contact))
end = contact;
#if UNSTABLE
MySimpleObjectDraw.DrawLine(start, end, Globals.WeaponLaser, ref colour, 0.05f);
#else
MySimpleObjectDraw.DrawLine(start, end, "WeaponLaser", ref colour, 0.05f);
#endif
}

Update1_GameThread();
Expand Down

0 comments on commit 3f26ba4

Please sign in to comment.