turn off accept-clock-skew by default

This commit is contained in:
David Rose 2008-08-01 00:42:40 +00:00
parent e939b326b5
commit 618c6da8a5
3 changed files with 10 additions and 1 deletions

View File

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

View File

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

View File

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