From 30f4fc4a8e8e86a8813f5ebdee9f8384aa444a29 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 31 Dec 2018 14:19:49 +0100 Subject: ... --- fire/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fire/main.go b/fire/main.go index 17760bf..1b4418f 100644 --- a/fire/main.go +++ b/fire/main.go @@ -99,7 +99,7 @@ func (dc *drawContext) update(screen *ebiten.Image) error { for y := 1; y < dc.img.Bounds().Max.Y; y++ { z := rand.Intn(3) n := dc.img.ColorIndexAt(x, y-1) - if n > 0 && z == 0 { + if n > 0 && z == 1 { n-- } dc.img.SetColorIndex(x-z+1, y, n) -- cgit v1.2.3