summaryrefslogtreecommitdiff
path: root/app/bin/turnout.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2025-09-20 19:19:41 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2025-09-20 19:19:41 +0200
commit63ec5715054be18ac4db5675e067b41c955d03b9 (patch)
tree42bb5764b05bd3bc5bffadb55f4375e6dce8a521 /app/bin/turnout.c
parent6c1a798b0302034a7fdcaf93b8f014e2e458c2a0 (diff)
parente7d20cf352688bf717a01f4e6d9e6f497c2bea4c (diff)
Update upstream source from tag 'upstream/5.3.1Beta2'
Update to upstream version '5.3.1Beta2' with Debian dir 36e53756d97319b1944d0ea744717abc9326f697
Diffstat (limited to 'app/bin/turnout.c')
-rw-r--r--app/bin/turnout.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/app/bin/turnout.c b/app/bin/turnout.c
index 57c398b..f176d63 100644
--- a/app/bin/turnout.c
+++ b/app/bin/turnout.c
@@ -1001,7 +1001,7 @@ static void DrawDtoInit()
*
* \param d The drawing object
* \param scaleInx The layout/track scale index
- * \param color The tie color. If black the color is read from the global tieColor.
+ * \param color The tie color. If black the color is read from the global tieColor in DrawTie().
*/
static void DrawNormalTurnout(
drawCmd_p d,
@@ -1018,9 +1018,6 @@ static void DrawNormalTurnout(
// int s0;
ANGLE_T a0;
- if (color == wDrawColorBlack) {
- color = tieColor;
- }
// DIST_T trackGauge = GetTrkGauge(dtod.trk);
@@ -1246,7 +1243,7 @@ static void DrawNormalTurnout(
*
* \param d The drawing object
* \param scaleInx The layout/track scale index
- * \param color The tie color. If black the color is read from the global tieColor.
+ * \param color The tie color. If black the color is read from the global tieColor in DrawTie().
*/
static void DrawCurvedTurnout(
drawCmd_p d,
@@ -1263,9 +1260,6 @@ static void DrawCurvedTurnout(
ANGLE_T a0, a1, a2;
struct extraDataCompound_t* xx = dtod.xx;
- if (color == wDrawColorBlack) {
- color = tieColor;
- }
DrawDtoInit();
@@ -1505,7 +1499,7 @@ static void DrawCurvedTurnout(
*
* \param d The drawing object
* \param scaleInx The layout/track scale index
- * \param color The tie color. If black the color is read from the global tieColor.
+ * \param color The tie color. If black the color is read from the global tieColor in DrawTie().
*/
static void DrawXingTurnout(
drawCmd_p d,
@@ -1518,9 +1512,6 @@ static void DrawXingTurnout(
int cnt;
ANGLE_T cAngle;
- if (color == wDrawColorBlack) {
- color = tieColor;
- }
coOrd c1, c2, s1, s2, p1, p2, q1;
int p0, q0;
@@ -1840,7 +1831,7 @@ static void DrawXingTurnout(
*
* \param d The drawing object
* \param scaleInx The layout/track scale index
- * \param color The tie color. If black the color is read from the global tieColor.
+ * \param color The tie color. If black the color is read from the global tieColor in DrawTie().
*/
static void DrawCrossTurnout(
drawCmd_p d,
@@ -1853,9 +1844,6 @@ static void DrawCrossTurnout(
int cnt;
ANGLE_T angle;
- if (color == wDrawColorBlack) {
- color = tieColor;
- }
// struct extraDataCompound_t* xx = dtod.xx;