diff options
Diffstat (limited to 'proto-ft/ftnoir_protocol_ft.cpp')
-rw-r--r-- | proto-ft/ftnoir_protocol_ft.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp index 0e07a103..766bddbf 100644 --- a/proto-ft/ftnoir_protocol_ft.cpp +++ b/proto-ft/ftnoir_protocol_ft.cpp @@ -66,9 +66,7 @@ freetrack::~freetrack() { if (shm.success()) { - const double tmp[6] {}; - pose(tmp); - store(pMemData->data.DataID, 0); + store(pMemData->data.DataID, 1); store(pMemData->GameID2, -1); } @@ -98,10 +96,10 @@ void freetrack::pose(const double* headpose) store(data->Pitch, pitch); store(data->Roll, roll); - store(data->DataID, 60 * 30 + (rand() % 120)); - const std::int32_t id = load(ft->GameID); + store(data->DataID, 60 * 10 + (rand() % 64)); + if (intGameID != id) { QString gamename; |