]> 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 667cfae5000a2344eecad485c896c51a55265f7c..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);
@@ -470,7 +470,7 @@ drawRect(SimView *view, int pixel, int solid,
                image += 3;
              }
            } else {
-             if (stipple++ & 1) {
+             if (solid || stipple++ & 1) {
                *(image++) = (pixel >> 0) & 0xff;
                *(image++) = (pixel >> 8) & 0xff;
                *(image++) = (pixel >> 16) & 0xff;
Impressum, Datenschutz