X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrain.cpp;h=e8df4d890ced6478c2e083776be81f9bc58564eb;hb=4529bf980cf3558d86c07266de7d890d3f5e06a6;hp=74bc50328ce8b6bb60f7f917c149b97989d5e7b7;hpb=83c2811157e9861a72e1ece34160cb014ef35fb5;p=r2c2.git diff --git a/source/libr2c2/train.cpp b/source/libr2c2/train.cpp index 74bc503..e8df4d8 100644 --- a/source/libr2c2/train.cpp +++ b/source/libr2c2/train.cpp @@ -340,6 +340,8 @@ void Train::tick(const Time::TimeDelta &dt) } } } + else if(intent_to_move && !allocator.is_active()) + allocator.set_active(true); else if(allocator.is_active() && !intent_to_move && !stop_timeout) stop_timeout = 2*Time::sec; }