~colbyhub/pocket_dust

d13891b93e2ae56a4b2b1486297564224c1f0959 — colbyhub 3 months ago ac5b479
Fix stuck particle bug

I spent too much time trying to fix this.

Fixes: https://todo.sr.ht/~colbyhub/pocket_dust-issues/17
1 files changed, 2 insertions(+), 2 deletions(-)

M src/main.c
M src/main.c => src/main.c +2 -2
@@ 494,8 494,8 @@ void update(void) {
  static int primary_material_id = 1;
  static int secondary_material_id = 2;

  for (int x = CANVAS_WIDTH - 1; x > 0; x--) {
    for (int y = CANVAS_HEIGHT - 1; y > 0; y--) {
  for (int x = CANVAS_WIDTH - 1; x >= 0; x--) {
    for (int y = CANVAS_HEIGHT - 1; y >= 0; y--) {
      set_particle_updated(get_particle(x, y), false);
    }
  }