]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix serious bug in DP_SV_CLIENTCAMERA that made it break in multiplayer
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Apr 2010 21:42:15 +0000 (21:42 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Apr 2010 21:42:15 +0000 (21:42 +0000)
added DP_SV_CLIENTCAMERA extension name

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10092 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c
svvm_cmds.c

index e1330214f43ddec39920509273a658bb3e1b8ef8..fb0be74065f0260c084673b419664649fbc13eb5 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -2366,7 +2366,7 @@ static void SV_UpdateToReliableMessages (void)
                        }
 
                        if( oldclientcamera != host_client->clientcamera ) {
-                               MSG_WriteByte (&sv.reliable_datagram, svc_setview );
+                               MSG_WriteByte (&host_client->netconnection->message, svc_setview );
                                MSG_WriteShort (&host_client->netconnection->message, host_client->clientcamera);
                        }
                }
index 160c12ad6bcbebf508d508a2a73f79be6a597b56..224d80958a7713dc7a7f9d362690848953b5c582 100644 (file)
@@ -138,6 +138,7 @@ char *vm_sv_extensions =
 "DP_SPRITE32 "
 "DP_SV_BOTCLIENT "
 "DP_SV_BOUNCEFACTOR "
+"DP_SV_CLIENTCAMERA "
 "DP_SV_CLIENTCOLORS "
 "DP_SV_CLIENTNAME "
 "DP_SV_CMD "