]> git.tdb.fi Git - r2c2.git/commit
Fix logic with signals and train direction check
authorMikko Rasa <tdb@tdb.fi>
Sat, 27 Apr 2013 10:05:55 +0000 (13:05 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 27 Apr 2013 10:05:55 +0000 (13:05 +0300)
commit176634834df3ac62646d1aec78e35f9364750d7d
tree695ae974b1d4fb07a9d2e8d601e3b1a331c7d093
parenta993f204ba2cd282637814caec3ab115040fc0cc
Fix logic with signals and train direction check

The train pointer wasn't being cleared in case of wrong direction.  Since
commit 4086edb it's possible to implement the logic in a more efficient
way too.
source/libr2c2/signal.cpp
source/libr2c2/signal.h