1
0
Fork 0

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:
jano 2021-05-07 11:58:42 +02:00 committed by James Turner
parent 773a44c072
commit 804f689da8

View file

@ -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;