]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/train.cpp
Add a timetable command to travel past a turnout
[r2c2.git] / source / libr2c2 / train.cpp
index 122ea9b18795ffcc64f4de01d065bd5d1fb46369..1447ca58df834c86f7a14d27610e0959bb38c560 100644 (file)
@@ -782,6 +782,8 @@ void Train::sensor_event(unsigned addr, bool state)
                        }
 
                        // Move blocks up to the next sensor to our current blocks
+                       for(BlockList::iterator j=cur_blocks_end; j!=end; ++j)
+                               signal_advanced.emit(**j);
                        cur_blocks_end = end;
 
                        // Try to get more blocks if we're moving