Skip to content

Commit

Permalink
Add exception for "Klinikum Olvenstedt"
Browse files Browse the repository at this point in the history
  • Loading branch information
MG-5 committed Feb 5, 2024
1 parent 7548b24 commit 3a464f4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion main/led/RenderTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,15 @@ void RenderTask::renderVehicles(bool showCurrentVehicle)

// print line direction, blinking when train is at station
if (!IsTrainAtStation || showCurrentVehicle)
renderer.print({lineNumberPixelWidth, pageCounter}, vehicle.directionName.data());
{
std::string directionName = "";
if (vehicle.directionName == "Klinikum Olvenstedt")
directionName = "Kl. Olvenstedt";
else
directionName = vehicle.directionName;

renderer.print({lineNumberPixelWidth, pageCounter}, directionName.data());
}

if (!IsTrainAtStation)
{
Expand Down

0 comments on commit 3a464f4

Please sign in to comment.