summaryrefslogtreecommitdiffhomepage
path: root/proto-ft/ftnoir_protocol_ft.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-10 15:35:22 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-10 15:35:22 +0100
commit2eac169518ab341d1b99b1ac6c2a88ab4e850ce5 (patch)
tree2a4023413cea16ee3407d763a80f5bcfef6f7a14 /proto-ft/ftnoir_protocol_ft.cpp
parentd283b2b8eb54c49b38bb9b60ea70e04d07eb5bbd (diff)
proto/ft: fix logic error
Diffstat (limited to 'proto-ft/ftnoir_protocol_ft.cpp')
-rw-r--r--proto-ft/ftnoir_protocol_ft.cpp8
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;