Skip to content

Commit

Permalink
draw walkinareas on top of crossings. refs #11668
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 8, 2024
1 parent 3db5930 commit 2dc5969
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/guisim/GUILane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,9 +543,12 @@ GUILane::drawGL(const GUIVisualizationSettings& s) const {
const bool detailZoom = s.scale * exaggeration > 5;
const bool drawDetails = (detailZoom || s.junctionSize.minSize == 0 || hasRailSignal);
const bool drawRails = drawAsRailway(s);
if (isCrossing || isWalkingArea) {
if (isCrossing) {
// draw internal lanes on top of junctions
glTranslated(0, 0, GLO_JUNCTION + 0.1);
} else if (isWalkingArea) {
// draw internal lanes on top of junctions
glTranslated(0, 0, GLO_JUNCTION + 0.3);
} else if (isWaterway(myPermissions)) {
// draw waterways below normal roads
glTranslated(0, 0, getType() - 0.2);
Expand Down

0 comments on commit 2dc5969

Please sign in to comment.