From: Mikko Rasa Date: Fri, 6 Feb 2015 22:00:12 +0000 (+0200) Subject: Interpret turnout delay as float, not unsigned X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=44b821894e355d62188f955b0bf29c24fa16d910;p=r2c2.git Interpret turnout delay as float, not unsigned --- diff --git a/source/libr2c2/dummy.cpp b/source/libr2c2/dummy.cpp index c28a3e1..a8efac3 100644 --- a/source/libr2c2/dummy.cpp +++ b/source/libr2c2/dummy.cpp @@ -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)