summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-07-18 16:22:46 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-07-18 16:22:46 +0200
commit6e570f2366c47e80041e341edeef37392d3fcccf (patch)
treebd39decab7a32404de631d65dc0bb4f28f5f4fd7
parent1d58f209449ff97403f76da63f16a5877f87addb (diff)
Fix Linux bitrot
-rw-r--r--ftnoir_protocol_wine/opentrack-wrapper-wine-main.cxx6
-rw-r--r--x-plane-plugin/plugin.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/ftnoir_protocol_wine/opentrack-wrapper-wine-main.cxx b/ftnoir_protocol_wine/opentrack-wrapper-wine-main.cxx
index 39bef955..8f8a2fb2 100644
--- a/ftnoir_protocol_wine/opentrack-wrapper-wine-main.cxx
+++ b/ftnoir_protocol_wine/opentrack-wrapper-wine-main.cxx
@@ -53,9 +53,9 @@ int main(void)
break;
}
lck_wine.lock();
- data->Yaw = shm_posix->data[RX];
- data->Pitch = shm_posix->data[RY];
- data->Roll = shm_posix->data[RZ];
+ data->Yaw = shm_posix->data[Yaw];
+ data->Pitch = shm_posix->data[Pitch];
+ data->Roll = shm_posix->data[Roll];
data->X = shm_posix->data[TX];
data->Y = shm_posix->data[TY];
data->Z = shm_posix->data[TZ];
diff --git a/x-plane-plugin/plugin.c b/x-plane-plugin/plugin.c
index f7c3a1b0..18a01aa2 100644
--- a/x-plane-plugin/plugin.c
+++ b/x-plane-plugin/plugin.c
@@ -88,8 +88,8 @@ int write_head_position(
XPLMSetDataf(view_x, shm_posix->data[TX] * 1e-2 + offset_x);
XPLMSetDataf(view_y, shm_posix->data[TY] * 1e-2 + offset_y);
XPLMSetDataf(view_z, shm_posix->data[TZ] * 1e-2 + offset_z);
- XPLMSetDataf(view_heading, shm_posix->data[RX]);
- XPLMSetDataf(view_pitch, shm_posix->data[RY]);
+ XPLMSetDataf(view_heading, shm_posix->data[Yaw]);
+ XPLMSetDataf(view_pitch, shm_posix->data[Pitch]);
PortableLockedShm_unlock(lck_posix);
}
return 1;