summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-12-30 14:41:35 +0100
committerDimitri Sokolyuk <demon@dim13.org>2018-12-30 14:41:35 +0100
commit81ac3fe8100f88d3060c9cec7b47bce71686fb49 (patch)
treec4e5c62c5f5cec8a682eaeeb0fda4c1af366abc6
parent4a727347ccda302776e65a1701ddc3716a3ceb2c (diff)
...
-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)