summaryrefslogtreecommitdiff
path: root/crates/renderer/src/overlay/automata.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/renderer/src/overlay/automata.rs')
-rw-r--r--crates/renderer/src/overlay/automata.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/renderer/src/overlay/automata.rs b/crates/renderer/src/overlay/automata.rs
index 22f7884..fbbc138 100644
--- a/crates/renderer/src/overlay/automata.rs
+++ b/crates/renderer/src/overlay/automata.rs
@@ -115,6 +115,7 @@ impl CellBuffer {
pub fn get(&self, x: i32, y: i32) -> Cell {
self.buf[Self::idx(x, y)]
}
+
pub fn neighbors(&self, x: i32, y: i32) -> [Cell; 8] {
[ self.get(x-1, y-1),
self.get(x, y-1),