[quake3-commits] r1768 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Jan 6 08:47:38 EST 2010


Author: ludwig
Date: 2010-01-06 08:47:38 -0500 (Wed, 06 Jan 2010)
New Revision: 1768

Modified:
   trunk/code/client/libmumblelink.c
Log:
fix mumble coordinate transmission

Modified: trunk/code/client/libmumblelink.c
===================================================================
--- trunk/code/client/libmumblelink.c	2010-01-06 13:47:35 UTC (rev 1767)
+++ trunk/code/client/libmumblelink.c	2010-01-06 13:47:38 UTC (rev 1768)
@@ -111,6 +111,7 @@
 	}
 	close(shmfd);
 #endif
+	memset(lm, 0, sizeof(LinkedMem));
 	mbstowcs(lm->name, name, sizeof(lm->name));
 
 	return 0;
@@ -127,12 +128,12 @@
 	if (!lm)
 		return;
 
-	memcpy(lm->fAvatarPosition, fAvatarPosition, sizeof(fAvatarPosition));
-	memcpy(lm->fAvatarFront, fAvatarFront, sizeof(fAvatarFront));
-	memcpy(lm->fAvatarTop, fAvatarTop, sizeof(fAvatarTop));
-	memcpy(lm->fCameraPosition, fCameraPosition, sizeof(fCameraPosition));
-	memcpy(lm->fCameraFront, fCameraFront, sizeof(fCameraFront));
-	memcpy(lm->fCameraTop, fCameraTop, sizeof(fCameraTop));
+	memcpy(lm->fAvatarPosition, fAvatarPosition, sizeof(lm->fAvatarPosition));
+	memcpy(lm->fAvatarFront, fAvatarFront, sizeof(lm->fAvatarFront));
+	memcpy(lm->fAvatarTop, fAvatarTop, sizeof(lm->fAvatarTop));
+	memcpy(lm->fCameraPosition, fCameraPosition, sizeof(lm->fCameraPosition));
+	memcpy(lm->fCameraFront, fCameraFront, sizeof(lm->fCameraFront));
+	memcpy(lm->fCameraTop, fCameraTop, sizeof(lm->fCameraTop));
 	lm->uiVersion = 2;
 	lm->uiTick = GetTickCount();
 }
@@ -151,6 +152,7 @@
 	if (!lm)
 		return;
 	len = MIN(sizeof(lm->context), len);
+	lm->context_len = len;
 	memcpy(lm->context, context, len);
 }
 



More information about the quake3-commits mailing list