diff --git a/src/parser/src/entities.rs b/src/parser/src/entities.rs index 565db96f..ab78ef70 100644 --- a/src/parser/src/entities.rs +++ b/src/parser/src/entities.rs @@ -427,7 +427,7 @@ impl<'a> ParserThread<'a> { if let Some(baseline_bytes) = self.baselines.get(&cls_id) { let b = &baseline_bytes.clone(); let mut br = Bitreader::new(&b); - // self.update_entity(&mut br, *entity_id, true)?; + self.update_entity(&mut br, *entity_id, true)?; } Ok(()) } diff --git a/src/parser/src/game_events.rs b/src/parser/src/game_events.rs index 8cc44ce5..8acdd873 100644 --- a/src/parser/src/game_events.rs +++ b/src/parser/src/game_events.rs @@ -67,7 +67,7 @@ impl<'a> ParserThread<'a> { return Ok(None); } }; - // self.game_events_counter.insert(event_desc.name.as_ref().unwrap().clone()); + self.game_events_counter.insert(event_desc.name.as_ref().unwrap().clone()); // Return early if this is not a wanted event. if !self.wanted_events.contains(&event_desc.name().to_string()) && self.wanted_events.first() != Some(&"all".to_string()) diff --git a/src/parser/src/parser_threads.rs b/src/parser/src/parser_threads.rs index 8c675a77..eb423e7a 100644 --- a/src/parser/src/parser_threads.rs +++ b/src/parser/src/parser_threads.rs @@ -27,7 +27,7 @@ impl<'a> ParserThread<'a> { let size = read_varint(outer_bytes, &mut self.ptr)?; self.tick = tick as i32; - println!("{:?}", tick); + // Safety check if self.ptr + size as usize >= outer_bytes.len() { break;