summaryrefslogtreecommitdiff
path: root/fire/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'fire/main.go')
-rw-r--r--fire/main.go2
1 files changed, 1 insertions, 1 deletions
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)