]> git.tdb.fi Git - r2c2.git/commitdiff
Include destination pointer in the arrival signal
authorMikko Rasa <tdb@tdb.fi>
Wed, 26 Mar 2014 20:33:13 +0000 (22:33 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 26 Mar 2014 20:33:13 +0000 (22:33 +0200)
source/libr2c2/trainrouter.cpp
source/libr2c2/trainrouter.h

index 7ed90992457a1a329fe12b815fa859ee2997eec5..6bd94fccf81dc3faed4fa816a0e5ada19789efdc 100644 (file)
@@ -165,8 +165,8 @@ void TrainRouter::tick(const Time::TimeDelta &dt)
 
        if(arriving==1 && !train.get_speed())
        {
-               signal_arrived.emit();
-               signal_event.emit(Message("arrived"));
+               signal_arrived.emit(destination);
+               signal_event.emit(Message("arrived", destination));
                arriving = 2;
        }
        else if(arriving==2 && !train.get_block_allocator().is_active())
index a2a73aa94d9337d083346e6e6688f8e47dcb8b56..9efc3a6001cf6bc811d101b8fb8a6b54b5f1e81e 100644 (file)
@@ -24,7 +24,7 @@ public:
        };
 
        sigc::signal<void, const Route *> signal_route_changed;
-       sigc::signal<void> signal_arrived;
+       sigc::signal<void, const TrackChain *> signal_arrived;
 
 private:
        struct Wait