mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 20:57:23 +01:00
[MIRROR] fix an issue in verdigris map distribution (#9765)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
cf1d3dfc83
commit
fb660f56a6
Binary file not shown.
Binary file not shown.
@@ -25,7 +25,7 @@ pub fn generate_automata(
|
||||
|
||||
for x in [-1, 0, 1] {
|
||||
for y in [-1, 0, 1] {
|
||||
let idx = ((i as i32) + x + (y * (limit_y as i32))) as usize;
|
||||
let idx = ((i as i32) + x + (y * (limit_x as i32))) as usize;
|
||||
|
||||
if let Some(&value) = map.get(idx) {
|
||||
let is_border_left = idx % limit_x == 0;
|
||||
|
||||
Reference in New Issue
Block a user