another bug gah

This commit is contained in:
mehbark 2025-03-11 16:35:16 -04:00
parent b1994c2764
commit 5ed1748595

View file

@ -115,11 +115,12 @@ impl Game {
for y in 0..self.height {
let dx = rng.random_range(-1..=1);
let dy = rng.random_range(-1..=1);
if dx == dy {
let (ox, oy) = (x + dx, y + dy);
if (x, y) == (ox, oy) {
continue;
}
let (ox, oy) = (x + dx, y + dy);
let Some(other) = self.at(ox, oy) else {
continue;
};