From b8fe5be9bf33510499ec26b87a72a7cd65489ae9 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 2 Aug 2013 17:58:45 +0300 Subject: [PATCH] Fix allocation display when a train is chasing another --- source/3d/allocation.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/3d/allocation.cpp b/source/3d/allocation.cpp index 4bafb11..0611b05 100644 --- a/source/3d/allocation.cpp +++ b/source/3d/allocation.cpp @@ -29,10 +29,7 @@ void Allocation3D::set_color(const GL::Color &c) void Allocation3D::block_reserved(Block &block, Train *t) { - if(t && t!=&train) - return; - - if(t) + if(t==&train) { if(paths.count(&block)) return; -- 2.43.0