]> git.tdb.fi Git - r2c2.git/commitdiff
Fix allocation display when a train is chasing another
authorMikko Rasa <tdb@tdb.fi>
Fri, 2 Aug 2013 14:58:45 +0000 (17:58 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 2 Aug 2013 14:58:45 +0000 (17:58 +0300)
source/3d/allocation.cpp

index 4bafb111c7e60e02cd018960d599d9c24796a216..0611b058f95a0d08f36ae3da0ba340cdfb6bdb30 100644 (file)
@@ -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;