From: Mikko Rasa Date: Wed, 26 Mar 2014 20:33:13 +0000 (+0200) Subject: Include destination pointer in the arrival signal X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=0aa9976c7ee8752a47decd8e162161b0b824af57;p=r2c2.git Include destination pointer in the arrival signal --- diff --git a/source/libr2c2/trainrouter.cpp b/source/libr2c2/trainrouter.cpp index 7ed9099..6bd94fc 100644 --- a/source/libr2c2/trainrouter.cpp +++ b/source/libr2c2/trainrouter.cpp @@ -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()) diff --git a/source/libr2c2/trainrouter.h b/source/libr2c2/trainrouter.h index a2a73aa..9efc3a6 100644 --- a/source/libr2c2/trainrouter.h +++ b/source/libr2c2/trainrouter.h @@ -24,7 +24,7 @@ public: }; sigc::signal signal_route_changed; - sigc::signal signal_arrived; + sigc::signal signal_arrived; private: struct Wait