From 165afe4be35452c606ec70f6e58f6acdecb111a8 Mon Sep 17 00:00:00 2001
From: Daniel Willmann <daniel@totalueberwachung.de>
Date: Mon, 27 Oct 2014 14:26:29 +0100
Subject: [PATCH] python/fire: Use neighbors on the NSEW, not diagonal for
 smoothing

---
 python/fire.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/python/fire.py b/python/fire.py
index 4f0e6a6..00106ad 100755
--- a/python/fire.py
+++ b/python/fire.py
@@ -19,10 +19,10 @@ def init_fire():
 # Smooth image and cool (darken) pixels according to cool_map
 def avg_cooled(x, y, buf):
 	res = 0
-	res += buf[(y*client.WIDTH-1) + x-1]
-	res += buf[(y*client.WIDTH-1) + x+1]
-	res += buf[(y*client.WIDTH+1) + x-1]
-	res += buf[(y*client.WIDTH+1) + x+1]
+	res += buf[(y*client.WIDTH) + x-1]
+	res += buf[(y*client.WIDTH) + x+1]
+	res += buf[(y*client.WIDTH-1) + x]
+	res += buf[(y*client.WIDTH+1) + x]
 	res += buf[(y*client.WIDTH) + x]
 	res = int(res / 5.0 - cool_map[(y+ cool_offs)%client.HEIGHT*client.WIDTH + x])
 	if res < 0:
-- 
GitLab