From 3e9da38eb21ed6ec0450379ab680066c916260f1 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sun, 28 Mar 2010 09:39:15 +0100 Subject: [PATCH] Render curved rails within tile bounds --- src/TrackCommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TrackCommon.cpp b/src/TrackCommon.cpp index 995ed43..ee514b6 100644 --- a/src/TrackCommon.cpp +++ b/src/TrackCommon.cpp @@ -176,7 +176,7 @@ namespace { - (type == OUTER_RAIL ? 0 : GAUGE); const float r = R - RAIL_WIDTH; - const float step = 0.2f; + const float step = M_PI / 2.0f / 10.0f; // Top of rail for (float theta = 0; theta < M_PI / 2.0f; theta += step) { -- 2.39.2