1
0
Fork 0

bug correction to the lag adjust nasal part, did things wrong when

simplifying the code
This commit is contained in:
janodesbois 2015-06-08 18:23:34 +02:00
parent 563c098452
commit b304d43d49

View file

@ -15,9 +15,8 @@ var mpCheck = func() {
setprop("/ai/models/multiplayer["~i~"]/controls/compensate-lag", 3);
setprop("/ai/models/multiplayer["~i~"]/controls/player-lag", -spectator_offset);
} else {
var server = getprop("/sim/multiplay/txhost");
var lag = offset
} if (apply_close) {
var lag = offset;
if (apply_close) {
var self = geo.aircraft_position();
var x = getprop("/ai/models/multiplayer["~i~"]/position/global-x");
var y = getprop("/ai/models/multiplayer["~i~"]/position/global-y");
@ -29,10 +28,11 @@ var mpCheck = func() {
} else {
setprop("/ai/models/multiplayer["~i~"]/controls/compensate-lag", 2);
setprop("/ai/models/multiplayer["~i~"]/controls/player-lag", lag);
};
}
} else {
setprop("/ai/models/multiplayer["~i~"]/controls/compensate-lag", 1);
}
}
i += 1;
} else {
i = 0;