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

Function Explosion_Func_BloomExplosion

src/explosion.c:157–168  ·  view source on GitHub ↗

* Check if there is a bloom at the location, and make it explode if needed. * @param e The Explosion to perform the explosion on. * @param parameter Unused parameter. */

Source from the content-addressed store, hash-verified

155 * @param parameter Unused parameter.
156 */
157static void Explosion_Func_BloomExplosion(Explosion *e, uint16 parameter)
158{
159 uint16 packed;
160
161 VARIABLE_NOT_USED(parameter);
162
163 packed = Tile_PackTile(e->position);
164
165 if (g_map[packed].groundTileID != g_bloomTileID) return;
166
167 Map_Bloom_ExplodeSpice(packed, g_playerHouseID);
168}
169
170/**
171 * Set the animation of a Explosion.

Callers 1

Explosion_TickFunction · 0.85

Calls 1

Map_Bloom_ExplodeSpiceFunction · 0.85

Tested by

no test coverage detected