turn off accept-clock-skew by default
This commit is contained in:
parent
e939b326b5
commit
618c6da8a5
|
|
@ -23,6 +23,11 @@ ConfigureFn(config_deadrec) {
|
|||
init_libdeadrec();
|
||||
}
|
||||
|
||||
ConfigVariableBool accept_clock_skew
|
||||
("accept-clock-skew", false,
|
||||
PRC_DESC("This controls the default value of "
|
||||
"SmoothMover::get_accept_clock_skew()."));
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: init_libdeadrec
|
||||
|
|
|
|||
|
|
@ -17,9 +17,12 @@
|
|||
|
||||
#include "directbase.h"
|
||||
#include "notifyCategoryProxy.h"
|
||||
#include "configVariableBool.h"
|
||||
|
||||
NotifyCategoryDecl(deadrec, EXPCL_DIRECT, EXPTP_DIRECT);
|
||||
|
||||
extern ConfigVariableBool accept_clock_skew;
|
||||
|
||||
extern EXPCL_DIRECT void init_libdeadrec();
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
#include "smoothMover.h"
|
||||
#include "pnotify.h"
|
||||
#include "compose_matrix.h"
|
||||
#include "config_deadrec.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: SmoothMover::Constructor
|
||||
|
|
@ -57,7 +58,7 @@ SmoothMover() {
|
|||
_smooth_mode = SM_off;
|
||||
_prediction_mode = PM_off;
|
||||
_delay = 0.2;
|
||||
_accept_clock_skew = true;
|
||||
_accept_clock_skew = accept_clock_skew;
|
||||
_directional_velocity = true;
|
||||
_default_to_standing_still = true;
|
||||
_max_position_age = 0.25;
|
||||
|
|
|
|||
Loading…
Reference in New Issue