mirror of
https://codeberg.org/demostf/edit.git
synced 2026-06-03 11:54:07 +02:00
pov fixes
This commit is contained in:
parent
e578513fdd
commit
842a01e52d
2 changed files with 3 additions and 5 deletions
|
|
@ -62,7 +62,8 @@ pub fn cut(input: &[u8], options: EditOptions) -> Vec<u8> {
|
|||
|
||||
let start_state = skip_start(&mut start_handler, &mut packets, start_tick);
|
||||
|
||||
for packet in start_state.start_packets {
|
||||
for mut packet in start_state.start_packets {
|
||||
mutators.mutate_packet(&mut packet, &handler.state_handler);
|
||||
packet
|
||||
.encode(&mut out_stream, &handler.state_handler)
|
||||
.unwrap();
|
||||
|
|
|
|||
|
|
@ -34,13 +34,10 @@ impl MessageMutator for AddStvEntity {
|
|||
}
|
||||
let server_class = player_entity.server_class;
|
||||
|
||||
let mut team_prop = player_entity.get_prop_by_identifier(&TEAM_PROP, state).unwrap().clone();
|
||||
team_prop.value = SendPropValue::Integer(1);
|
||||
|
||||
ent_message.entities.push(PacketEntity {
|
||||
server_class,
|
||||
entity_index: self.entity_index,
|
||||
props: vec![team_prop],
|
||||
props: vec![],
|
||||
in_pvs: false,
|
||||
update_type: UpdateType::Enter,
|
||||
serial_number: 1234567,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue