From 1bcce010b5b11b485ba80df58c984277100dc99e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 11 May 2025 00:12:42 +0100 Subject: Fix conditional render of rail links Tests for vertices, not links in network. Fixes case where links are present but not in network, e.g. currently being built. --- game/network/rail.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/network/rail.cpp') diff --git a/game/network/rail.cpp b/game/network/rail.cpp index c0e597d..37eb7df 100644 --- a/game/network/rail.cpp +++ b/game/network/rail.cpp @@ -169,7 +169,7 @@ namespace { void RailLinks::render(const SceneShader & shader, const Frustum &) const { - if (!links.empty()) { + if (anyLinks()) { texture->bind(); glEnable(GL_POLYGON_OFFSET_FILL); glPolygonOffset(-1, 0); -- cgit v1.2.3