mirror of
https://codeberg.org/demostf/edit.git
synced 2026-06-03 20:04:06 +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);
|
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
|
packet
|
||||||
.encode(&mut out_stream, &handler.state_handler)
|
.encode(&mut out_stream, &handler.state_handler)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
|
||||||
|
|
@ -34,13 +34,10 @@ impl MessageMutator for AddStvEntity {
|
||||||
}
|
}
|
||||||
let server_class = player_entity.server_class;
|
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 {
|
ent_message.entities.push(PacketEntity {
|
||||||
server_class,
|
server_class,
|
||||||
entity_index: self.entity_index,
|
entity_index: self.entity_index,
|
||||||
props: vec![team_prop],
|
props: vec![],
|
||||||
in_pvs: false,
|
in_pvs: false,
|
||||||
update_type: UpdateType::Enter,
|
update_type: UpdateType::Enter,
|
||||||
serial_number: 1234567,
|
serial_number: 1234567,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue