Skip to content

Commit

Permalink
fix: adjust the amount of active columns
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocket committed Sep 12, 2024
1 parent eca065a commit 0a4f923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ fn printCells(core: *Core, handler: *Handler, rand: std.rand.Random) !void {
}
}

if (core.active_columns >= 2) {
if (core.active_columns > 2) {
core.columns.?.items[rand.uintLessThan(u32, @intCast(core.width))].?.deactivate(core);
} else {
core.columns.?.items[rand.uintLessThan(u32, @intCast(core.width))].?.activate(core);
Expand Down

0 comments on commit 0a4f923

Please sign in to comment.