From ee54ce5cf9a702be5efb4a99abe6946a21d4db41 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 18 Jul 2013 17:59:29 +0200 Subject: Assorted Linux fixes --- ftnoir_protocol_wine/ftnoir_protocol_wine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ftnoir_protocol_wine/ftnoir_protocol_wine.cpp') diff --git a/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp b/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp index c6c038d9..bb877cc6 100644 --- a/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp +++ b/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp @@ -65,9 +65,9 @@ void FTNoIR_Protocol::sendHeadposeToGame( double *headpose, double *rawheadpose if (shm) { lck_shm.lock(); - for (int i = 0; i < 3; i++) - shm->data[i] = headpose[i] / 57.295781; for (int i = 3; i < 6; i++) + shm->data[i] = headpose[i] / 57.295781; + for (int i = 0; i < 3; i++) shm->data[i] = headpose[i] * 10; if (shm->gameid != gameid) { @@ -75,7 +75,7 @@ void FTNoIR_Protocol::sendHeadposeToGame( double *headpose, double *rawheadpose QMutexLocker foo(&game_name_mutex); /* only EZCA for FSX requires dummy process, and FSX doesn't work on Linux */ /* memory-hacks DLL can't be loaded into a Linux process, either */ - CSV::getGameData(gameid, shm->table, gamename); + CSV::getGameData(shm->gameid, shm->table, gamename); gameid = shm->gameid2 = shm->gameid; connected_game = gamename; } -- cgit v1.2.3