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 1d2cb9e..4aea2c1 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