]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix bug that caused server to send incorrect format of .velocity in
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 19 May 2007 18:42:03 +0000 (18:42 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 19 May 2007 18:42:03 +0000 (18:42 +0000)
svc_clientdata when using "QUAKEDP" protocol

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

sv_main.c

index 20ad4bda71c65b917029e63ab956093afe85bdbd..917189630cc00382ab71b10ed645533fff52f6de 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -1434,7 +1434,7 @@ void SV_WriteClientdataToMessage (client_t *client, prvm_edict_t *ent, sizebuf_t
                }
                if (bits & (SU_VELOCITY1<<i))
                {
-                       if (sv.protocol == PROTOCOL_QUAKE || sv.protocol == PROTOCOL_DARKPLACES1 || sv.protocol == PROTOCOL_DARKPLACES2 || sv.protocol == PROTOCOL_DARKPLACES3 || sv.protocol == PROTOCOL_DARKPLACES4)
+                       if (sv.protocol == PROTOCOL_QUAKE || sv.protocol == PROTOCOL_QUAKEDP || sv.protocol == PROTOCOL_NEHAHRAMOVIE || sv.protocol == PROTOCOL_DARKPLACES1 || sv.protocol == PROTOCOL_DARKPLACES2 || sv.protocol == PROTOCOL_DARKPLACES3 || sv.protocol == PROTOCOL_DARKPLACES4)
                                MSG_WriteChar(msg, (int)(ent->fields.server->velocity[i] * (1.0f / 16.0f)));
                        else
                                MSG_WriteCoord32f(msg, ent->fields.server->velocity[i]);