Skip to content

Commit 629f9da

Browse files
committed
sss
1 parent ffeb200 commit 629f9da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/game/src/systems/director/missions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ impl Mission for WayleaveDefault {
169169
return None;
170170
}
171171
self.elapsed = self.elapsed.saturating_add(dt_ticks);
172-
if self.elapsed.is_multiple_of(40) && self.reached < self.checkpoints {
172+
if self.elapsed % 40 == 0 && self.reached < self.checkpoints {
173173
self.reached += 1;
174174
}
175175
if self.reached >= self.checkpoints {

crates/game/src/world/boardgen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ fn generate_walls(rng: &mut Xoshiro256PlusPlus, w: u32, h: u32) -> Vec<Wall> {
8080
let wall_count = (rng.next_u32() % 7) + 6; // 6..=12
8181

8282
for _ in 0..wall_count {
83-
let is_horizontal = rng.next_u32().is_multiple_of(2);
83+
let is_horizontal = rng.next_u32() % 2 == 0;
8484
let x = (rng.next_u32() as i32) % w as i32;
8585
let y = (rng.next_u32() as i32) % h as i32;
8686
let len = (rng.next_u32() % 8) + 3; // 3..=10

0 commit comments

Comments
 (0)