X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Foptions.cpp;h=bdac3619356bbc6b3a1c9558a4bce74b66f6cf65;hb=eb8b919a1a224c0d6f206d1d29a9b4b8c3a0cac8;hp=89e1fd109be155a3172aa488afc2619bf89d42fe;hpb=621c5c938d70ba0d155e0eda91a708db0a52c0dc;p=r2c2.git diff --git a/source/engineer/options.cpp b/source/engineer/options.cpp index 89e1fd1..bdac361 100644 --- a/source/engineer/options.cpp +++ b/source/engineer/options.cpp @@ -13,7 +13,8 @@ Options::Options(int argc, char **argv): fullscreen(false), debug(false), network(false), - simulate(false) + simulate(false), + sim_speed(1.0f) { string res; @@ -23,6 +24,7 @@ Options::Options(int argc, char **argv): getopt.add_option('g', "debug", debug, GetOpt::NO_ARG); getopt.add_option('d', "driver", driver, GetOpt::REQUIRED_ARG); getopt.add_option('s', "simulate", simulate, GetOpt::NO_ARG); + getopt.add_option( "sim-speed", sim_speed, GetOpt::REQUIRED_ARG); getopt.add_option('n', "network", network, GetOpt::NO_ARG); getopt.add_option( "state", state_fn, GetOpt::REQUIRED_ARG); getopt(argc, argv);