]> git.tdb.fi Git - r2c2.git/commitdiff
Put emergency highlights on a higher layer
authorMikko Rasa <tdb@tdb.fi>
Wed, 9 Apr 2014 21:18:10 +0000 (00:18 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 9 Apr 2014 21:18:10 +0000 (00:18 +0300)
source/engineer/engineer.cpp

index aa82dcb66b0b50475dfa16b87dbf3c23ee34969f..07ab83b67eb3c086b6aa29e95c68f0bfbea174cd 100644 (file)
@@ -318,6 +318,7 @@ void Engineer::emergency(Block *block, const string &msg)
        set_status(msg);
        TrackChain3D *tch3d = new TrackChain3D(layout_3d, *block);
        tch3d->set_color(GL::Color(1.0f, 0.0f, 0.0f));
+       tch3d->set_layer(2);
        emergencies.push_back(tch3d);
 }