* Stop any Explosion at position \a packed. * @param packed A packed position where no activities should take place (any more). */
| 250 | * @param packed A packed position where no activities should take place (any more). |
| 251 | */ |
| 252 | static void Explosion_StopAtPosition(uint16 packed) |
| 253 | { |
| 254 | Tile *t; |
| 255 | uint8 i; |
| 256 | |
| 257 | t = &g_map[packed]; |
| 258 | |
| 259 | if (!t->hasExplosion) return; |
| 260 | |
| 261 | for (i = 0; i < EXPLOSION_MAX; i++) { |
| 262 | Explosion *e; |
| 263 | |
| 264 | e = &g_explosions[i]; |
| 265 | |
| 266 | if (e->commands == NULL || Tile_PackTile(e->position) != packed) continue; |
| 267 | |
| 268 | Explosion_Func_Stop(e, 0); |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | void Explosion_Init(void) |
| 273 | { |
no test coverage detected