]> git.zerfleddert.de Git - micropolis/commitdiff
fix fire coverage overlay by iterating over the whole map
authorMichael Gernoth <michael@gernoth.net>
Sat, 26 Jan 2008 19:45:43 +0000 (20:45 +0100)
committerMichael Gernoth <michael@gernoth.net>
Sat, 26 Jan 2008 19:45:43 +0000 (20:45 +0100)
src/sim/g_map.c

index 1d2cb9edf8900ca4d3bc90039c1bcd95b34bae4e..4aea2c19378da21f7b437b6b5196fd2af9807f90 100644 (file)
@@ -219,7 +219,7 @@ drawFireRadius(SimView *view)
   short x, y;
 
   drawAll(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);
     for (y = 0; y < SmY; y++) {
       maybeDrawRect(view, GetCI(FireRate[x][y]),
                    x * 24, y * 24, 24, 24);
Impressum, Datenschutz