]> git.zerfleddert.de Git - micropolis/blobdiff - src/sim/g_map.c
fix fire coverage overlay by iterating over the whole map
[micropolis] / src / sim / g_map.c
index 1d2cb9edf8900ca4d3bc90039c1bcd95b34bae4e..4aea2c19378da21f7b437b6b5196fd2af9807f90 100644 (file)
@@ -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);
Impressum, Datenschutz