1
0
Fork 0

Multiplayer: lag adjustment clock mode initialization.

Ensure the property is initialized to zero during AI MP model binding.
This commit is contained in:
Richard Harrison 2018-02-17 12:22:14 +01:00
parent 40a602d732
commit 48563acdd2

View file

@ -82,6 +82,10 @@ bool FGAIMultiplayer::init(bool search_in_AI_path) {
void FGAIMultiplayer::bind() {
FGAIBase::bind();
//2018.1 mp-clock-mode indicates the clock mode that the client is running, so for backwards
// compatibility ensure this is initialized to 0 which means pre 2018.1
props->setIntValue("sim/multiplay/mp-clock-mode", 0);
tie("refuel/contact", SGRawValuePointer<bool>(&contact));
tie("tanker", SGRawValuePointer<bool>(&isTanker));