MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Explosion_StopAtPosition

Function Explosion_StopAtPosition

src/explosion.c:252–270  ·  view source on GitHub ↗

* Stop any Explosion at position \a packed. * @param packed A packed position where no activities should take place (any more). */

Source from the content-addressed store, hash-verified

250 * @param packed A packed position where no activities should take place (any more).
251 */
252static 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
272void Explosion_Init(void)
273{

Callers 1

Explosion_StartFunction · 0.85

Calls 1

Explosion_Func_StopFunction · 0.85

Tested by

no test coverage detected