From: Mikko Rasa Date: Fri, 2 Aug 2013 14:58:45 +0000 (+0300) Subject: Fix allocation display when a train is chasing another X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=b8fe5be9bf33510499ec26b87a72a7cd65489ae9;p=r2c2.git Fix allocation display when a train is chasing another --- 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;