Skip to content

Commit

Permalink
v. 0.8.0
Browse files Browse the repository at this point in the history
In the previous commit the circle for intersection highlighting in
tunnels was drawn on ground and tunnel. Now only in tunnel (underground)
  • Loading branch information
Craxy authored and Craxy committed Jun 13, 2015
1 parent 8420873 commit dd2f3f3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ToggleTrafficLights/Tools/ToggleTrafficLightsTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,13 @@ private void HighlightNode(RenderManager.CameraInfo cameraInfo, int nodeId)
if (info.m_netAI.IsUnderground())
{
DrawCircle(cameraInfo, position, info.m_halfWidth, color);

}
else
{
++Singleton<ToolManager>.instance.m_drawCallData.m_overlayCalls;
Singleton<RenderManager>.instance.OverlayEffect.DrawCircle(cameraInfo, color, position, info.m_halfWidth * 2, -1f, 1280f, false, false);
}

++Singleton<ToolManager>.instance.m_drawCallData.m_overlayCalls;
Singleton<RenderManager>.instance.OverlayEffect.DrawCircle(cameraInfo, color, position, info.m_halfWidth * 2, -1f, 1280f, false, false);
}
#endregion

Expand Down

0 comments on commit dd2f3f3

Please sign in to comment.