made the --multiplay option only set sim/multiplay/tx-rate-hz for the
out command, in option curently overwrite the rate given by the out option eg: --multiplay=out,20,localhost,5000 --multiplay=in,,,5003 end with a tx rate of "0" and this end with the default value 10 later
This commit is contained in:
parent
773a44c072
commit
804f689da8
1 changed files with 1 additions and 1 deletions
|
@ -193,13 +193,13 @@ FGIO::parse_port_config( const string_list& tokens, bool& o_ok )
|
|||
|
||||
// multiplay used to be handled by an FGProtocol, but no longer. This code
|
||||
// retains compatibility with existing command-line syntax
|
||||
fgSetInt("/sim/multiplay/tx-rate-hz", rate);
|
||||
if (dir == "in") {
|
||||
fgSetInt("/sim/multiplay/rxport", port);
|
||||
fgSetString("/sim/multiplay/rxhost", host.c_str());
|
||||
} else if (dir == "out") {
|
||||
fgSetInt("/sim/multiplay/txport", port);
|
||||
fgSetString("/sim/multiplay/txhost", host.c_str());
|
||||
fgSetInt("/sim/multiplay/tx-rate-hz", rate);
|
||||
}
|
||||
o_ok = true;
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue