This commit is contained in:
Janek
2024-04-10 22:54:50 +02:00
parent 45081a21b1
commit a0a7be3022
2 changed files with 5 additions and 4 deletions

View File

@@ -83,8 +83,8 @@ pub async fn run(radar_data: ArcRwlockRadarData, connector: Connector, pcileech_
let bomb_defuse_end: f32 = {
if bomb_can_defuse {
if let Some(bomb_stamp) = data.bomb_defuse_stamp {
(data.bomb_plant_timer - bomb_stamp.elapsed().as_secs_f32()) - data.bomb_defuse_length
if let Some(defuse_stamp) = data.bomb_defuse_stamp {
data.bomb_plant_timer - (data.bomb_defuse_length - defuse_stamp.elapsed().as_secs_f32())
} else {
0.0
}