Skip to content

Commit e3fff20

Browse files
committed
???
1 parent 6bc7b6f commit e3fff20

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{"aggression_pct":0,"drift_mm":0,"los_m":1000,"route_id":0,"timestamp":0,"weather":"Clear"}
2+
{"aggression_pct":0,"drift_mm":0,"los_m":1000,"route_id":0,"timestamp":0,"weather":"Clear"}
3+
{"aggression_pct":3,"drift_mm":35,"los_m":900,"route_id":0,"timestamp":0,"weather":"Windy"}
4+
{"aggression_pct":8,"drift_mm":0,"los_m":600,"route_id":0,"timestamp":1,"weather":"Fog"}
5+
{"aggression_pct":8,"drift_mm":0,"los_m":600,"route_id":0,"timestamp":1,"weather":"Fog"}
6+
{"aggression_pct":5,"drift_mm":20,"los_m":800,"route_id":0,"timestamp":2,"weather":"Rains"}
7+
{"aggression_pct":3,"drift_mm":35,"los_m":900,"route_id":0,"timestamp":1,"weather":"Windy"}
8+
{"aggression_pct":0,"drift_mm":0,"los_m":1000,"route_id":0,"timestamp":2,"weather":"Clear"}
9+
{"aggression_pct":3,"drift_mm":35,"los_m":900,"route_id":0,"timestamp":3,"weather":"Windy"}
10+
{"aggression_pct":3,"drift_mm":35,"los_m":900,"route_id":0,"timestamp":4,"weather":"Windy"}
11+
{"aggression_pct":8,"drift_mm":0,"los_m":600,"route_id":0,"timestamp":3,"weather":"Fog"}
12+
{"aggression_pct":3,"drift_mm":35,"los_m":900,"route_id":0,"timestamp":5,"weather":"Windy"}
13+
{"aggression_pct":0,"drift_mm":0,"los_m":1000,"route_id":0,"timestamp":4,"weather":"Clear"}
14+
{"aggression_pct":5,"drift_mm":20,"los_m":800,"route_id":0,"timestamp":5,"weather":"Rains"}
15+
{"aggression_pct":0,"drift_mm":0,"los_m":1000,"route_id":0,"timestamp":6,"weather":"Clear"}
16+
{"aggression_pct":3,"drift_mm":35,"los_m":900,"route_id":0,"timestamp":7,"weather":"Windy"}
17+
{"aggression_pct":0,"drift_mm":0,"los_m":1000,"route_id":0,"timestamp":8,"weather":"Clear"}

crates/game/src/systems/gameplay/drift.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub fn get_drift_offset_mm(
3333

3434
let timestamp = TIMESTAMP_COUNTER.fetch_add(1, Ordering::Relaxed);
3535
let _ = log_weather_state(&WeatherLogData {
36-
route_id: route_id.unwrap_or(0),
36+
route_id: _route_id.unwrap_or(0),
3737
weather: format!("{:?}", weather),
3838
los_m: config.get_los_m(weather),
3939
drift_mm: drift_amount as u32,
@@ -80,7 +80,7 @@ pub fn get_drift_offset_mm(
8080

8181
let timestamp = TIMESTAMP_COUNTER.fetch_add(1, Ordering::Relaxed);
8282
let _ = log_weather_state(&WeatherLogData {
83-
route_id: route_id.unwrap_or(0),
83+
route_id: _route_id.unwrap_or(0),
8484
weather: format!("{:?}", weather),
8585
los_m: config.get_los_m(weather),
8686
drift_mm: drift_amount as u32,

crates/game/src/systems/gameplay/los.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub fn get_los_distance_m(weather: Weather, config: &WeatherConfig, _route_id: O
3535

3636
let timestamp = TIMESTAMP_COUNTER.fetch_add(1, Ordering::Relaxed);
3737
let _ = log_weather_state(&WeatherLogData {
38-
route_id: route_id.unwrap_or(0),
38+
route_id: _route_id.unwrap_or(0),
3939
weather: format!("{:?}", weather),
4040
los_m: distance,
4141
drift_mm: config.get_drift_mm(weather),

0 commit comments

Comments
 (0)