1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-04 02:24:12 +02:00

also save PVS::Delete entities we dont know the class of

This commit is contained in:
Robin Appelman 2021-07-23 21:39:40 +02:00
commit 8f25a8cfa8
2 changed files with 11 additions and 1 deletions

View file

@ -251,6 +251,16 @@ impl Parse<'_> for PacketEntitiesMessage {
} else if state.entity_classes.contains_key(&entity_index) {
let entity = get_entity_for_update(state, entity_index, pvs)?;
entities.push(entity);
} else {
entities.push(PacketEntity {
server_class: 0.into(),
entity_index,
props: vec![],
in_pvs: false,
pvs,
serial_number: 0,
delay: None,
});
}
}