summaryrefslogtreecommitdiff
path: root/source/sv_send.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-10-03 12:49:06 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-10-03 12:49:06 +0000
commitf8abe42a0d1a42653b39f6cf320d3fbdd1279bb3 (patch)
tree4e56e3647a4f9933f71c5f2cc03b4fa40bfc7709 /source/sv_send.c
parent3fb2508c6c5976d418c377847bba1037fa843fff (diff)
Consolidated all MVD server code in a single file for easier portability.
Perform more strict configstring length checks server side. No longer stop reading packets in a loop after an ICMP error.
Diffstat (limited to 'source/sv_send.c')
-rw-r--r--source/sv_send.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source/sv_send.c b/source/sv_send.c
index 1c95071..6d85d29 100644
--- a/source/sv_send.c
+++ b/source/sv_send.c
@@ -249,15 +249,12 @@ void SV_Multicast( vec3_t origin, multicast_t to ) {
int flags;
vec3_t org;
player_state_t *ps;
- sizebuf_t *buf;
flags = 0;
- buf = &sv.mvd.datagram;
switch( to ) {
case MULTICAST_ALL_R:
flags |= MSG_RELIABLE;
- buf = &sv.mvd.message;
// intentional fallthrough
case MULTICAST_ALL:
leaf1 = NULL;
@@ -265,7 +262,6 @@ void SV_Multicast( vec3_t origin, multicast_t to ) {
break;
case MULTICAST_PHS_R:
flags |= MSG_RELIABLE;
- buf = &sv.mvd.message;
// intentional fallthrough
case MULTICAST_PHS:
leaf1 = CM_PointLeaf( &sv.cm, origin );
@@ -274,7 +270,6 @@ void SV_Multicast( vec3_t origin, multicast_t to ) {
break;
case MULTICAST_PVS_R:
flags |= MSG_RELIABLE;
- buf = &sv.mvd.message;
// intentional fallthrough
case MULTICAST_PVS:
leaf1 = CM_PointLeaf( &sv.cm, origin );
@@ -314,9 +309,7 @@ void SV_Multicast( vec3_t origin, multicast_t to ) {
}
// add to MVD datagram
- if( svs.mvd.dummy && sv.mvd.paused < PAUSED_FRAMES ) {
- SV_MvdMulticast( buf, leafnum, mvd_multicast_all + to );
- }
+ SV_MvdMulticast( leafnum, to );
// clear the buffer
SZ_Clear( &msg_write );