From: Michael Gernoth <michael@gernoth.net>
Date: Sat, 26 Jan 2008 19:45:43 +0000 (+0100)
Subject: fix fire coverage overlay by iterating over the whole map
X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/commitdiff_plain/3cab55b46859459fecfc4af498b5bf7aa73a17a9

fix fire coverage overlay by iterating over the whole map
---

diff --git a/src/sim/g_map.c b/src/sim/g_map.c
index 1d2cb9e..4aea2c1 100644
--- a/src/sim/g_map.c
+++ b/src/sim/g_map.c
@@ -219,7 +219,7 @@ drawFireRadius(SimView *view)
   short x, y;
 
   drawAll(view);
-  for (x = 0; x < SmY; x++) {
+  for (x = 0; x < SmX; x++) {
     for (y = 0; y < SmY; y++) {
       maybeDrawRect(view, GetCI(FireRate[x][y]),
 		    x * 24, y * 24, 24, 24);