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

Function Explosion_Update

src/explosion.c:33–42  ·  view source on GitHub ↗

* Update the tile a Explosion is on. * @param type Are we introducing (0) or updating (2) the tile. * @param e The Explosion in question. */

Source from the content-addressed store, hash-verified

31 * @param e The Explosion in question.
32 */
33static void Explosion_Update(uint16 type, Explosion *e)
34{
35 if (e == NULL) return;
36
37 if (type == 1 && e->isDirty) return;
38
39 e->isDirty = (type != 0);
40
41 Map_UpdateAround(24, e->position, NULL, g_functions[2][type]);
42}
43
44/**
45 * Handle damage to a tile, removing spice, removing concrete, stuff like that.

Callers 2

Explosion_Func_StopFunction · 0.85

Calls 1

Map_UpdateAroundFunction · 0.85

Tested by

no test coverage detected