]> git.tdb.fi Git - r2c2.git/commitdiff
Interpret turnout delay as float, not unsigned
authorMikko Rasa <tdb@tdb.fi>
Fri, 6 Feb 2015 22:00:12 +0000 (00:00 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 6 Feb 2015 22:00:12 +0000 (00:00 +0200)
source/libr2c2/dummy.cpp

index c28a3e16e9ae9c3a25d3a87c8b560b62c7e28c51..a8efac3a1d71204f3b0d861843b482db41911f98 100644 (file)
@@ -9,7 +9,7 @@ namespace R2C2 {
 
 Dummy::Dummy(const Options &opts):
        power(true),
-       turnout_delay(opts.get("turnout_delay", 0U)*Time::sec)
+       turnout_delay(opts.get("turnout_delay", 0.0f)*Time::sec)
 { }
 
 void Dummy::set_power(bool p)