* Make a nuclear power plant melt * @todo Randomize which nuke plant melts down. */
| 205 | * @todo Randomize which nuke plant melts down. |
| 206 | */ |
| 207 | void Micropolis::makeMeltdown() |
| 208 | { |
| 209 | short x, y; |
| 210 | |
| 211 | for (x = 0; x < (WORLD_W - 1); x++) { |
| 212 | for (y = 0; y < (WORLD_H - 1); y++) { |
| 213 | if ((map[x][y] & LOMASK) == NUCLEAR) { |
| 214 | doMeltdown(Position(x, y)); |
| 215 | return; |
| 216 | } |
| 217 | } |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | |
| 222 | /** Let a fire bomb explode at a random location */ |
no test coverage detected