We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f2c7d4 commit 2dd8bffCopy full SHA for 2dd8bff
1 file changed
src/main.zig
@@ -597,15 +597,13 @@ pub fn showDoomFire() void {
597
spread_rnd_idx = rand.intRangeAtMost(u8, 0, 3);
598
if (doFire_idx >= (spread_rnd_idx + 1)) {
599
spread_dst = doFire_idx - spread_rnd_idx + 1;
600
- }
601
- else {
602
- spread_dst=doFire_idx;
+ } else {
+ spread_dst = doFire_idx;
603
}
604
if (spread_dst >= FIRE_W) {
605
if (spread_px > (spread_rnd_idx & 1)) {
606
- screen_buf[spread_dst - FIRE_W] = spread_px - (spread_rnd_idx & 1);
607
608
+ screen_buf[spread_dst - FIRE_W] = spread_px - (spread_rnd_idx & 1);
609
screen_buf[spread_dst - FIRE_W] = 0;
610
611
0 commit comments