summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fire/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/fire/main.go b/fire/main.go
index 8a1dab5..48f21d6 100644
--- a/fire/main.go
+++ b/fire/main.go
@@ -96,7 +96,7 @@ func (dc *drawContext) update(screen *ebiten.Image) error {
for y := 1; y < r.Max.Y; y++ {
z := rand.Intn(3)
n := dc.img.ColorIndexAt(x, y-1)
- if n > 0 && z&1 == 0 {
+ if n > 0 && z == 0 {
n--
}
dc.img.SetColorIndex(x-z+1, y, n)