Skip to content

Commit 2dd8bff

Browse files
author
const-void
committed
zig fmt
1 parent 4f2c7d4 commit 2dd8bff

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/main.zig

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -597,15 +597,13 @@ pub fn showDoomFire() void {
597597
spread_rnd_idx = rand.intRangeAtMost(u8, 0, 3);
598598
if (doFire_idx >= (spread_rnd_idx + 1)) {
599599
spread_dst = doFire_idx - spread_rnd_idx + 1;
600-
}
601-
else {
602-
spread_dst=doFire_idx;
600+
} else {
601+
spread_dst = doFire_idx;
603602
}
604603
if (spread_dst >= FIRE_W) {
605604
if (spread_px > (spread_rnd_idx & 1)) {
606-
screen_buf[spread_dst - FIRE_W] = spread_px - (spread_rnd_idx & 1);
607-
}
608-
else {
605+
screen_buf[spread_dst - FIRE_W] = spread_px - (spread_rnd_idx & 1);
606+
} else {
609607
screen_buf[spread_dst - FIRE_W] = 0;
610608
}
611609
}

0 commit comments

Comments
 (0)