summaryrefslogtreecommitdiff
path: root/source/mvd_parse.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-09-30 13:48:03 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-09-30 13:48:03 +0000
commit328163a3d1f53e574c2ca312b3f61552e102e984 (patch)
treee51395e550d88b09e8a554c63da8b47412d377b9 /source/mvd_parse.c
parentb86d35105f37dfe0375853917ed09e63f7e1d8d2 (diff)
Ensure MVD client links dead player bodies correctly.
Implemented `oldscores' hack for MVD observers. Fixed client side lerping of new entities with teleport event set.
Diffstat (limited to 'source/mvd_parse.c')
-rw-r--r--source/mvd_parse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/mvd_parse.c b/source/mvd_parse.c
index f5893d9..0de9a47 100644
--- a/source/mvd_parse.c
+++ b/source/mvd_parse.c
@@ -714,7 +714,8 @@ static void MVD_PlayerToEntityStates( mvd_t *mvd ) {
mvd->numplayers++;
if( player->ps.pmove.pm_type != PM_NORMAL ) {
- continue; // can be out of sync
+ continue; // can be out of sync, in this case
+ // server should provide valid data
}
edict = &mvd->edicts[i];
@@ -776,7 +777,7 @@ static void MVD_ParsePacketEntities( mvd_t *mvd ) {
MSG_ParseDeltaEntity( &ent->s, &ent->s, number, bits );
// lazily relink even if removed
- if( number > mvd->maxclients && ( bits & RELINK_MASK ) ) {
+ if( bits & RELINK_MASK ) {
MVD_LinkEdict( mvd, ent );
}